Gitlab Generate Changelog Script

2019-06-08 23:45发布

问题:

Using Gitlab for the first time.

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.

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.

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

Do I have to clone the whole Gitlab repo somewhere?

Any advice is appreciated.

回答1:

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.

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.



标签: git gitlab