[英]How to automate release notes using GIT merge descriptions
All,全部,
In our organization we are trying to automate generating RELEASE NOTES using GIT Merge requests.在我们的组织中,我们正在尝试使用 GIT 合并请求自动生成发布说明。 Is there any better way to do this, preferably looking for a solution in NodeJS.
有没有更好的方法可以做到这一点,最好在NodeJS中寻找解决方案。
When using something like standard-version
and commitizen
for standardization of your commits you can make use of a GitLab CI-Pipeline that generates your release notes based on the changelog that is generated by standard-version
当使用
standard-version
和commitizen
之类的东西来标准化您的提交时,您可以使用 GitLab CI-Pipeline,它根据standard-version
生成的变更日志生成您的发行说明
Within this Repository the project was set up using nodejs
, react
and typescript
, but the configuration would be the same.在此存储库中,项目是使用
nodejs
、 react
和typescript
的,但配置是相同的。 This CI-Configuration is an example of the aforementioned pipeline configuration.此CI-Configuration是上述管道配置的示例。
The same thing would also be applicable for Github actions with a little modification for Github-specific action syntax.同样的事情也适用于 Github 操作,只需对 Github 特定的操作语法进行少许修改。
The same thing would also be applicable for non-CI setups since the commands used in the ci-configuration are as well executable in local machines, but that way you would have some manual effort同样的事情也适用于非 CI 设置,因为 ci-configuration 中使用的命令也可以在本地机器上执行,但那样你就需要一些手动工作
Take a look at the semantic release plugin for GitLab: https://github.com/semantic-release/gitlab看看GitLab的语义发布插件: https://github.com/semantic-release/gitlab
Which implements the popular https://github.com/semantic-release/semantic-release project.其中实现了流行的https://github.com/semantic-release/semantic-release项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.