-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEV: reduce merge conflicts by sorting whatsnew notes by issue number? #51712
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
Comments
Misc pre-coffee thoughts:
|
These are good thoughts - to respond:
|
I'd think the concern is more about over-tooling. I believe we can all agree that 0 tools / scripts for maintenance is too few, 1000 tools / scripts is too many. Exactly how much is too much - I do not know. But this makes me want to feel confident that a tool / script is worth it before adding it to the repo.
If you add a line to the end of a section, and someone else has merged to main adding another note to the end of the same section, a conflict will happen. This is how they arise the most for me. The merge conflicts is a minor annoyance to me that I'd be fine living with, but I'm good trying this out and seeing how it goes. |
@jbrockmendel noted here that whatsnew notes are a major source of merge conflicts. @rhshadrach also mentioned it in Slack once.
I have an idea for how to address this - we require that, within each block, the issues be sorted by issue number. Then, the chances of two people modifying the same line of code should be greatly reduced compared with if everyone is appending to the end of the block
It should be pretty straightforward to write a check for this - any objections?
The text was updated successfully, but these errors were encountered: