git - How to go about creating a changelog.md on every merge from master to staging branch?
问题描述
I would like to automatically create a Changelog.md
every time I merge from master
to staging
or from staging
to production
. How to best go around doing this ?
Where I'm getting stuck is that the project I'm currently working on - built with react-native
- I haven't set neither git tags
nor semver
just yet. Do I need to have these things already set up before having a Changelog.md
? I think I might be over complicating things.
解决方案
我创建了一个 GitHub 应用程序“ Changelogg.io ”,以从合并的拉取请求中自动更改日志。
它检测 PR 中提到的更改并为其创建发布草案。添加发布版本后,它会自动更新 CHANGELOG.md 并且还有一个带有过滤器的 Web UI,用于生成的更改日志。
因此,在这种情况下,每次合并到分支时都会创建一个更改日志。可以为每个分支(master、staging、production)单独生成和维护变更日志,如果需要也可以滚动更新。
推荐阅读
- java - Elasticsearch:“脚本意外结束。”
- python - Django将数据传递到easy_pdf
- java - 编译动态生成的java类
- c++ - 与升压波链接时出现链接器“未定义的引用”错误
- c# - EF Core 可以从存储过程/视图/表值函数返回 IQueryable 吗?
- javascript - 子路由作为 Angular 主路由上的默认路由
- javascript - 如何在 react-native 中正确设置路径
- javascript - 动态创建的按钮和它自己的值
- tensorflow - 将keras层UpSampling2D部署到tensorRT
- python - 如何在 sqlalchemy 表达式语言中使用 jsonb 与 select 表达式中的整数进行比较?