-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Release: changelog can be out-of-sync #1620
Comments
This happens during the merge of the topic branch into the main branch. The topic branch correctly placed the entry under and the merge algo preserved the entry's immediately surrounding context (the adjacent entries). This put it under the already-released heading instead of the Note the "combined diff" with two initial If you do the merge on the command-line, you can inspect the merge result a) during committing when As a possible (sophisticated) solution that would "get it right" without manual or automatic checks, we could write a changelog-specific merge driver that would properly relocate entries during a merge and configure it to be used for |
Thanks for the detailed explanation. This is one of the downsides to GitHub's PR page – on #1599 I don't see any way to preview the fact that the changes will be added under the already-released heading, and clicking the magical merge button did not show anything like |
(I'm going to try hard to resist doing this, but it might be too tempting.) |
Another possible solution is towncrier which had been previously proposed in #980 (comment). We did not pursue at the time but it does prevent this type of problem. Not advocating for it now – just noting that if editing a single changelog file does not work well with multiple open PRs (as we are starting to see over time), it could be worth considering. |
With the practice of adding changelog entries in individual PRs rather than collectively as the first step of a release, there is potential for changelog updates to become out-of-sync (example: #1619).
Possible solutions
__NEXT__
section. Run this as part of PR checks and release checks.CHANGES.md
.The text was updated successfully, but these errors were encountered: