Skip to content

Commit 4a42ae3

Browse files
committed
doc: update onboarding PR landing info
Clarify a few items in the onboarding doc about landing a PR. One addition is to include the optional `Refs:` metadata. PR-URL: #8479 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent d4061a6 commit 4a42ae3

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

doc/onboarding.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,18 +170,24 @@ Landing a PR
170170
* `git rebase -i upstream/master`
171171
* squash into logical commits if necessary
172172
* `./configure && make -j8 test` (`-j8` builds node in parallel with 8 threads. adjust to the number of cores (or processor-level threads) your processor has (or slightly more) for best results.)
173-
* Amend the commit description
174-
* commits should follow `subsystem[,subsystem]: small description\n\nbig description\n\n<metadata>`
175-
* first line 50 columns, all others 72
176-
* add metadata:
177-
* `Fixes: <full-issue-url>`
178-
* `Reviewed-By: human <email>`
179-
* Easiest to use `git log` then do a search
180-
* (`/Name` + `enter` (+ `n` as much as you need to) in vim)
181-
* Only include collaborators who have commented `LGTM`
173+
* Amend the commit description.
174+
* Commits should be of the form `subsystem[,subsystem]: small description\n\nbig description\n\n<metadata>`
175+
* The first line should not exceed 50 characters.
176+
* The remaining lines (except for metadata lines) should wrap at 72 characters.
177+
* Add required metadata:
182178
* `PR-URL: <full-pr-url>`
179+
* `Reviewed-By: <collaborator name> <collaborator email>`
180+
* Easiest to use `git log`, then do a search.
181+
* In vim: `/Name` + `enter` (+ `n` as much as you need to)
182+
* Only include collaborators who have commented `LGTM`.
183+
* Add additional metadata as appropriate:
184+
* `Fixes: <full-issue-url>`
185+
* Full URL of GitHub issue that the PR fixes.
186+
* This will automatically close the PR when the commit lands in master.
187+
* `Refs: <full-url>`
188+
* Full URL of material that might provide additional useful information or context to someone trying to understand the change set or the thinking behind it.
183189
* `git push upstream master`
184-
* close the original PR with "Landed in `<commit hash>`".
190+
* Close the pull request with a "Landed in `<commit hash>`" comment.
185191

186192

187193
## exercise: make PRs adding yourselves to the README

0 commit comments

Comments
 (0)