-
-
Notifications
You must be signed in to change notification settings - Fork 35.9k
doc: add guide for backporting PRs #11099
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
Changes from 1 commit
f153855
837bcb9
aa40433
444359c
066e617
b06d19f
4db2488
2782890
89e7bfb
fc434b2
a374208
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,9 +79,34 @@ hint: and commit the result with 'git commit' | |
| * Push the changes to your fork and open a pull request. | ||
| * Be sure to target the `v7.x-staging` branch in the pull request. | ||
| * When landing a backport commit, please include the PR-URL from the original | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. /cc @nodejs/lts is everyone on board with this meta data change. For the record we have not been doing this at all. I for one would like to see this come up at an LTS meeting before we commit to taking on this process. If not in a meeting I would at least like to head from @jasnell @rvagg @mhdawson and @Fishrock123 in this comment thread
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Including the link to the original PR is fine but if this a backport-PR then a different metadata label should be used to avoid accidentally confusing tooling. For instance:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jasnell After the previous discussion in this PR, the consensus for the name (so far) was See #11099 (comment)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @gibfahn ... missed that earlier discussion
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jasnell that being said, are you alright with that approach?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that definitely works.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I good with the approach I think including the link to the original PR in Backport-of: is the right thing to do. |
||
| pull request and add `Backport: <backport PR-URL>` to the commit metadata. | ||
| The `Backport` line should be directly after the `PR-URL` line in the | ||
| metadata. | ||
| pull request as `Backport-of: <origin PR-URL>`. The `Backport-of` line should | ||
| be directly after the `PR-URL` line in the metadata. | ||
|
|
||
| Below are examples of an original commit message and a backport commit message. | ||
|
|
||
| In this example, https://github.com/nodejs/node/pull/1234 is the original pull | ||
| request and https://github.com/nodejs/node/pull/5678 is the backport. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These URL dummies become real URLs and get to be confusing as absolutely different PRs.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gibfahn my other comment was because of this. If the PR-URL is correct, then this sentence is a bit confusing because PR 5678 doesn't appear in the example |
||
|
|
||
| Original: | ||
|
|
||
| ``` | ||
| lib: make something faster | ||
|
|
||
| Switch to using String#repeat to improve performance. | ||
|
|
||
| PR-URL: https://github.com/nodejs/node/pull/1234 | ||
| ``` | ||
|
|
||
| Backport: | ||
|
|
||
| ``` | ||
| lib: make something faster | ||
|
|
||
| Switch to using String#repeat to improve performance. | ||
|
|
||
| PR-URL: https://github.com/nodejs/node/pull/5678 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not accurate. we maintain the original PR-URL |
||
| Backport-of: https://github.com/nodejs/node/pull/1234 | ||
| ``` | ||
|
|
||
| ### Helpful Hints | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should probably be a:
above this line, see #11797 (comment)