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

查看:112
本文介绍了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?

任何建议都值得赞赏.

推荐答案

由您决定如何管理changelog.md.看看其他问题,例如使用以下方法管理变更日志的好方法git?中提供了从git commit消息生成变更日志的示例.

It's up to you how you'd like to manage changelog.md. Take a look at other questions like Good ways to manage a changelog using git? for examples of generating changelogs from git commit messages.

您链接到的文档是关于为GitLab项目生成变更日志的( ce / ee ).这不是托管在GitLab上的存储库的功能.

The documentation you linked to is about generating changelogs for the GitLab projects (ce/ee). It's not a feature for repositories hosted on GitLab.

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

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