Avoid merge conflicts in CHANGELOG.md
See original GitHub issueWith the current changelog policy (add an entry as part of the PR, all in one file) it’s quite easy to run into merge conflicts as features are developed concurrently. This is not a problem unique to Prefect, many projects have run into this issue. There are three common solutions:
- Add a custom merge strategy for the
CHANGELOG.md
file (merge=union
) to better handle these conflicts. This will usually work, but may run into issues if concurrently added features have very similar lines. - Split the changelog into file-per-feature, and use a tool (towncrier is popular) to generate the final changelog from this before release.
- Add a bunch of filler entries (e.g. empty
-
list rows), and rely on developers adding entries in different spots to avoid merge conflicts.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How we solved GitLab's CHANGELOG conflict crisis
This post outlines how we completely eliminated changelog-related merge conflicts, removed bottlenecks for contributions, and automated a ...
Read more >Keep a Changelog without Conflicts | Uptech Studio
For years, like many others, we have maintained CHANGELOG.md files inside our ... Changelog entry and the code while avoiding the conflicts all...
Read more >How to best handle conflicts when everyone commits ... - Reddit
How to best handle conflicts when everyone commits to CHANGELOG.md file? ... Make the merge locally and solve the conflicts with any mergetool, ......
Read more >Merge conflicts when everyone adds to CHANGELOG.md file
We have a changelog.md file. When you make a change... you can optionally add a line to the top of this file, and...
Read more >Resolving Changelog Merge Conflict Madness - Sean Wallis
Fortunately this isn't a new problem. GitLab experienced a very similar changelog conflict crisis, which gave us the basis for our solution.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It looks like github doesn’t currently support
merge=union
: https://github.com/isaacs/github/issues/487.I went ahead and did this in #2529.