matthiasbeyer / cargo-changelog

Changelog management tool for the CLI
Other
23 stars 1 forks source link

How should changelog files be commited? #226

Open TheNeikos opened 1 year ago

TheNeikos commented 1 year ago

Should changelog additions be committed:

I am wondering if suggestions could be added to the README and/or to the CONTRIBUTIONS

matthiasbeyer commented 1 year ago

IMO that depends on the changes that are documented.

If your changes are a bugfix and one commit, the changelog should be committed with the change. This way, if the fix was malicious, reverting it automatically reverts the changelog entry as well.

If your change is implemented in several commits, adding one more commit for the changelog is fine. If a contributor doesnt want to use the tool, a maintainer can also file the changelog fragment in a seperate PR IMO.