-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Manage the changelog automatically #505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I don't think we need to bother with As for As for the rest, 👍 |
But if you manage the changelog records within version directories you can always regenerate the entire changelog. I'm OK to put everything into unreleased and move that to a version directory directly before the release. |
(not saying we should copy them right of but) GitLabs changelog-script removes the old files when it's done, so the versioned ones would be m00t ;) |
And I don't like the Gitlab approach to simply dropping the files. You are not easily able to regenerate the changelog. |
@tboerger that's easy, just go back in time 😆 |
but sure, lets keep them in versioned folders :) |
I'd prefer |
as in a binary or something you |
I think teabot could detect the PR merged and automatically send a PR to add a new changelog to .yml file. If teabot make a bad changelog we can add some commmits to the PR or close this PR. If we need teabot resend a PR. We can give a "RESEND PR". This will reduce many work and not conflict with above. |
@lunny the idea is to have it done automagically on any tag-event so having the bot send a PR would be counter-productive in this case :) |
Than you can add it only after opening the PR.
Use |
It usually changes during the course of a PR so it makes sense to add it later on 😉 |
Any PR to send for v1.1? Or should I move it to v1.2? |
@tboerger I'm currently working on this, saw this one
But your spec includes the PR-number as well |
Closing in favor of #6711 |
Currently writing the changelog is pretty cumbersome, we should take take the approach of Gitlab to write changelog records in yml format and automatically generate the changelog out of that. Every PR author can write a new yml file into a specific folder so that we can generate the changelog automatically. You can see the records of Gitlab at https://gitlab.com/gitlab-org/gitlab-ce/tree/master/changelogs/unreleased.
Format
I think the format used by Gitlab is already pretty fine, but I would also add a
kind
flag for grouping:kind
: Group the changelog records by this flag as we currently got forv1.0.0
releasetitle
: A possibly short title to explain the changepull_request
: Optionally the number of the pull request used as a referenceissue
: Optionally the number of the meta issue for multiple pull requestsauthor
: The name of the author who contributed the changeDirectories
For entirely new features I would suggest to put the file into
changelog/unreleased
, if it's already clear which version will be the target for this change we should put it intochangelog/v1.1.0
, for the filename I would suggest the formatYYYYMMDD-short-title.yml
.Scripting
To generate the changelog I would like to write a Go script to
scripts/
that generates theCHANGELOG.md
file out of the yml files. We can even integrate this into the CI process and add a commit which includes[skip ci]
in the commit message to update this on every merge on master and the release branches.The text was updated successfully, but these errors were encountered: