You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Release note format causes merge conflicts without fail #8603
Sounds like something to decide for those who do release work. But seems like a good idea, for all I see we have to read through the release notes anyway once, so that it should be fine.
Ok, this is now a pain. Say you make a series of commits where the first adds
+Add some new feature to x+-------------------------+This does a and b
and the second adds
-Add some new feature to x-----------------------------This does a and b+Add some new feature to x and y+------------------------------+This does a and b and c
Then the release notes get changed in master, and somehow there's a conflict anyway.
So you rebase, and end up with the junk that is
+Add some new feature to x+---------------------------+This does a and b+Add some new feature to x and y+------------------------------+This does a and b and c
because it's taking the union of the additions. Fixing this bad rebase is a lot of work
I think maybe we should revert this patch, and just fix conflicts as they come up in the web editor, creating merge commits
The basic idea is that we have a directory (conventionally called newsfragments), and PRs with user-visible effects should create a file called newsfragments/${ISSUE}.${TYPE}.rst, like newfragments/123.bugfix.rst. And then at release time you use the tool to collect up the files, collate them, and dump them into your actual docs.
Including the pr number is tricky for new users, because you don't know it till you submit.
But yes, I think that would be sensible. It's frustrating to see old PRs needing a rebase simply because they target the wrong release notes / clash with other release notes.
Is towncrier what matplotlib uses? They seem to have something similar going on
Towncrier was also suggested and discussed on the scipy issue tracker recently: scipy/scipy#7793
I'm -0.5 on that, and propose simply to use one Github issue per release. At merge time fragments can be added there. Simple, not much work for release manager, less cognitive load for new contributors, and doesn't make a mess of many little files.
Activity
eric-wieser commentedon Feb 10, 2017
Looks like
In .gitattributes would do the trick, although there's a risk here that it does a bad job of merging
mhvk commentedon Feb 10, 2017
That is what we ended up doing in astropy as well; 👍
(It does mean the release manager has to check for possible missing blank lines, but that seems to be about the extent of the mistakes that get made).
seberg commentedon Feb 10, 2017
Sounds like something to decide for those who do release work. But seems like a good idea, for all I see we have to read through the release notes anyway once, so that it should be fine.
MAINT: Decrease merge conflicts in release notes
eric-wieser commentedon Sep 11, 2017
Ok, this is now a pain. Say you make a series of commits where the first adds
and the second adds
Then the release notes get changed in master, and somehow there's a conflict anyway.
So you rebase, and end up with the junk that is
because it's taking the union of the additions. Fixing this bad rebase is a lot of work
I think maybe we should revert this patch, and just fix conflicts as they come up in the web editor, creating merge commits
njsmith commentedon Sep 11, 2017
We might consider switching to: https://github.com/hawkowl/towncrier
The basic idea is that we have a directory (conventionally called
newsfragments), and PRs with user-visible effects should create a file callednewsfragments/${ISSUE}.${TYPE}.rst, likenewfragments/123.bugfix.rst. And then at release time you use the tool to collect up the files, collate them, and dump them into your actual docs.eric-wieser commentedon Sep 11, 2017
Including the pr number is tricky for new users, because you don't know it till you submit.
But yes, I think that would be sensible. It's frustrating to see old PRs needing a rebase simply because they target the wrong release notes / clash with other release notes.
Is towncrier what matplotlib uses? They seem to have something similar going on
rgommers commentedon Sep 11, 2017
Towncrier was also suggested and discussed on the scipy issue tracker recently:
scipy/scipy#7793
I'm -0.5 on that, and propose simply to use one Github issue per release. At merge time fragments can be added there. Simple, not much work for release manager, less cognitive load for new contributors, and doesn't make a mess of many little files.
pv commentedon Sep 11, 2017
seberg commentedon Sep 22, 2019
And another issue about the annoyance of release notes creating merge conflicts. Closing.