Update Changelog.md automatically #5965
Replies: 6 comments 4 replies
-
|
Hey! Yeah this is something I have in my radar for a while now... I'll prioritize it though. Just to confirm, you mean append or prepend? |
Beta Was this translation helpful? Give feedback.
-
|
I had prepend in mind, so the newest version comes first in the file. Should I open an issue on GitHub, or are you tracking it on your end? |
Beta Was this translation helpful? Give feedback.
-
|
Another question: when should it happen? What's the flow you have in mind? E.g.: run |
Beta Was this translation helpful? Give feedback.
-
|
Hello! Naive question: could this be parameterized? For instance, always accessible through goreleaser changelog, but also able to run automatically during a release with a flag or a boolean in the YAML config. One last note: after discussing with Pete and Andrey (other maintainers), we decided to keep a manual changelog despite the extra effort. That said, I still see value in this feature (e.g. for GoReleaser), but it’s no longer a priority for us. I mainly rely on |
Beta Was this translation helpful? Give feedback.
-
|
I'm thinking something like: goreleaser changelog --template changelog.md.tpl --output changelog.mdand then the template something like # Changelog
{{ if .Next }}
## Next
{{ .Changelog }}
{{ end }}
{{ range .Releases }}
## {{ .Tag }} - {{ .Date }}
{{ .Changelog }}
{{ end }}Then basically it would re-gen the entire changelog when you run it. Not sure yet how good of an idea that is, but might be worth it. Another idea is to have some sort of marker, e.g. |
Beta Was this translation helpful? Give feedback.
-
|
The more I think about this, the more I think that it doesn't make too much sense, mostly because I think that the changelog file would not have every commit the release notes have. I think they are 2 different things. I have a more-or-less working prototype and I didn't like the result. Will sit on this a bit more - maybe this should be a different tool? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
First of all, thanks so much for this great tool!
Many projects maintain a
changelog.mdfile. Using GoReleaser’schangelogfeature to generate release notes (GitHub in our case) still requires manual updates tochangelog.md.(Example: https://github.com/hashicorp/terraform/blob/main/CHANGELOG.md / https://github.com/grafana/grafana/blob/main/CHANGELOG.md / https://github.com/go-task/task/blob/main/CHANGELOG.md)
One idea could be:
changelog.md, but configurable)..Changelogto be accessible in the templating system.I understand the user would still need to commit the changes, but this could be automated within the CI.
Beta Was this translation helpful? Give feedback.
All reactions