-
Notifications
You must be signed in to change notification settings - Fork 704
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
Change way Changelog is handled in pull-requests #5625
Comments
Other projects handle that in better ways, for example by generating the changelog at release time from the commit messages, or from a file added per commit or PR. Maybe Cabal could use such a method as well? |
@nh2 I sympathise this. With If we'd use commit messages, we'd need to be raise the quality bar of commit message quite high (for everyone!) I like both the from PR (Adding a to-be-filled Changelog entry section to PR template), |
Having a PR template section makes sense, then whoever merges the PR will be responsible for adding the changelog entry in a separate commit. I'm -1 on going back to generating the changelog at release time. |
Making the merger do extra work on merge sounds unecessary to me. Why don't we just use an approach where the person merging the PR doesn't have to do lots of manual work, but that can be fully scripted? Here are some approaches that other projects use: Approach 1: A changelog directoryA Approach 2: Changelogs in commitsEach commit message that's changelog-worthy includes a section:
that can be grepped out easily (up to the next blank line). |
The current approach is certainly not maintainable: We have 66 open PRs right now, and if each of them properly adhered to adding to the bottom of the changelog, we'd have to rebase + conflict-resolve all 66 PRs after the next merge. |
Not that big of a deal IMO, I usually/often want to do small edits to the changelog notes anyway. |
Also, is there a way to customise Git's auto-merging per file? It should be easy to resolve these types of conflicts automatically once you have a little extra info about the semantics of the file. |
Apparently you can set http://krlmlr.github.io/using-gitattributes-to-avoid-merge-conflicts/ |
...but it looks like GitHub doesn't support |
See haskell#5625. Somewhat experimental.
I've added |
The way
ChangeLog.md
is handled currently is really subobtimal.Every time somebody pushes a new feature, everybody else has to rebase all their pull requests because now obviously
ChangeLog.md
conflicts:The text was updated successfully, but these errors were encountered: