Gitlab 生成变更日志脚本 [英] Gitlab Generate Changelog Script

查看:20
本文介绍了Gitlab 生成变更日志脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

第一次使用 Gitlab.

Using Gitlab for the first time.

我在本地 PC 上有一个现有的 Web 项目,我运行了这些命令;

I had an existing web project on my local PC, I ran these commands;

cd /myFolder
git init
git add .
git remote add origin remote repository URL
git commit -m "First commit"
git push origin master

这将我所有的文件添加到我的远程仓库中 - 到目前为止一切正常.

This added all my files to my remote repo - all working well so far.

我注意到在gitlab网站上,在我的项目页面上,有一个按钮Add Changelog(以及add readmeadd licence等).我点击了这个按钮,并在我的文件夹中创建了一个空的 changelog.md,我已经能够将其拉入我的本地仓库.

I noticed that on the gitlab website, on my project page, there was a button Add Changelog (as well as add readme, add licence, etc.). I clicked this button and an empty changelog.md was created in my folder, which i've been able to pull into my local repo.

如何生成变更日志条目?

How do I generate changelog entries?

我已阅读 文档这个问题但我还是不明白.

I've read the documentation and this question but I still don't understand.

我在本地仓库的任何地方都看不到 bin/changelog.

I can't see a bin/changelog anywhere in my local repo.

我是否必须在某处克隆整个 Gitlab 存储库?

Do I have to clone the whole Gitlab repo somewhere?

感谢任何建议.

推荐答案

不再需要脚本.

参见 GitLab 13.9(2021 年 2 月)

See GitLab 13.9 (February 2021)

以前,使用 GitLab 生成变更日志是一个手动过程.发布经理必须收集给定版本的所有更改,然后手动将它们添加到更改日志文件中,这既费时又容易出错.为了使这个过程更容易,我们现在添加了一个 API,它将根据提交历史自动为给定版本生成更新日志.这使开发团队能够为每个版本提供一组一致且全面的变更日志,从而更好地向最终用户传达变更.

Create changelogs using the GitLab API

Previously, generating a changelog using GitLab was a manual process. Release Managers had to collect all the changes for a given release and then manually add them to a changelog file, which was time-consuming and prone to error. To make this process easier, we have now added an API that will automatically generate a changelog for a given release based on commit history. This enables development teams to better communicate changes to end users by delivering a consistent and comprehensive set of changelogs for every release.

请参阅 文档问题.

例子:

## 1.0.0 (2021-01-05)

### Features (4 changes)

- [Feature 1](gitlab-org/gitlab@123abc) by @alice ([merge request](gitlab-org/gitlab!123))
- [Feature 2](gitlab-org/gitlab@456abc) ([merge request](gitlab-org/gitlab!456))
- [Feature 3](gitlab-org/gitlab@234abc) by @steve
- [Feature 4](gitlab-org/gitlab@456)

这篇关于Gitlab 生成变更日志脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆