-
Notifications
You must be signed in to change notification settings - Fork 30k
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
doc: update CONTRIBUTING.md to address editing PRs #9259
Conversation
|
||
### Step 7: Discuss and update | ||
|
||
You will probably get feedback or requests for changes to your Pull Request, |
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.
Nit: period/full stop instead of comma after Pull Request
(and, therefore, this
-> This
in the next line).
|
||
When someone suggests changes, you can address them by applying them to your | ||
branch. When your branch changes, Github will automatically update the PR. | ||
|
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.
How about something more like this?:
To make changes to an existing Pull Request, make the changes to your branch. When your branch changes, GitHub will automatically update the Pull Request.
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.
Slightly amended to specify pushing their branch to their fork.
```text | ||
$ git add any/changed/files | ||
$ git commit --amend | ||
$ git push --force origin my-branch |
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.
Nit: Maybe suggest --force-with-lease
? Usually not an issue because the user will be the only one working on that branch, but with the whole GitHub thing of being able to allow Collaborators from the original fork to push to your branch, maybe it's best to get people into good habits early? (Would have to update the use of --force
a few lines below too.)
``` | ||
|
||
**Important:** The `git push --force` command is one of the few ways to delete | ||
history in git, before you use it, make sure you understand the risks. If in |
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.
Nit: Period/full stop after git
and therefore before
-> Before
also.
|
||
**Important:** The `git push --force` command is one of the few ways to delete | ||
history in git, before you use it, make sure you understand the risks. If in | ||
doubt, you can always ask for guidance in the Pull Request or on IRC. |
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.
Nit: Link the word IRC to #node-dev IRC channel here the same way it is done in the main README?
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.
I think I used the right link, let me know.
history in git, before you use it, make sure you understand the risks. If in | ||
doubt, you can always ask for guidance in the Pull Request or on IRC. | ||
|
||
If your Pull Request has gone quiet, post a comment in the pull request to ping |
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.
Nit: I don't much care whether we go with Pull Request
or pull request
, but please use one or the other exclusively. Both are used in this sentence. :-D
Nit: has gone quiet
may be a little colloquial. Maybe something like Feel free to post a comment in the Pull Request to ping reviewers if you are awaiting an answer on something.
?
### Step 8: Landing | ||
|
||
Once your PR has been reviewed and approved by at least two Node.js | ||
Collaborators, and as long as there is consensus (no objections from a |
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.
Only one Collaborator need to approve it. (More is better, of course. And two CTC members are required for semver-major
changes.)
|
||
Once your PR has been reviewed and approved by at least two Node.js | ||
Collaborators, and as long as there is consensus (no objections from a | ||
collaborator or unresolved issues) a collaborator should merge the PR in for |
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.
Nit: collaborator
-> Collaborator
twice here
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.
Nit: I'd remove or unresolved issues
Nit: comma after the closing parenthesis
Nit: should
-> can
or may
or even will
but probably not should
Nit: Unless we explicitly indicate somewhere that PR
stands for Pull Request
(and we may--I didn't look at the whole doc), stick with Pull Request
instead of PR
here and below.
Nit: Leave off in for you
Once your PR has been reviewed and approved by at least two Node.js | ||
Collaborators, and as long as there is consensus (no objections from a | ||
collaborator or unresolved issues) a collaborator should merge the PR in for | ||
you. Github often shows the PR as `Closed` at this point, but don't worry, if |
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.
Nit: Github
-> GitHub
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.
Nit: Comma to period/full stop and change if
to If
.
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.
Content looks great to me. I left a bunch of style nits, but the only one I'd insist on is the content change to indicate that you need at least one (not two) Collaborators to approve the PR.
Thanks for doing this! I agree it is likely to be much better for newcomers.
cea3788
to
66a809f
Compare
@Trott I think I addressed everything. Not entirely sure (e.g. about the IRC link). Let me know if you have any other suggestions, happy to keep revising! I think it's worth bikeshedding a fair bit for docs. Is it worth adding that Pull Requests usually are left to stew for at least 48 hours? I was going to, but I feel like there's already a tonne of information there, and I don't want to overload people too much. In fact I was considering taking out the bit about needing two CTC LGTMs to keep it simpler. Also maybe I should mention/explain the word LGTM in there? |
**Important:** The `git push --force-with-lease` command is one of the few ways | ||
to delete history in git. Before you use it, make sure you understand the risks. | ||
If in doubt, you can always ask for guidance in the Pull Request or on | ||
[IRC in the #node.js channel](https://webchat.freenode.net?channels=node.js&uio=d4). |
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.
I was thinking the #node-dev channel rather than the #Node.js channel.
LGTM as is. I'll change my review status to Approved. Optional additional bike-shed points:
|
cf88f49
to
9ca6aeb
Compare
Still LGTY? |
Yes, still looks good to me. |
Add more info about the contribution process after PR submission. PR-URL: nodejs#9259 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
9ca6aeb
to
7c383bc
Compare
Add more info about the contribution process after PR submission. PR-URL: #9259 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Add more info about the contribution process after PR submission. PR-URL: #9259 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Add more info about the contribution process after PR submission. PR-URL: #9259 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Add more info about the contribution process after PR submission. PR-URL: #9259 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Checklist
Affected core subsystem(s)
doc
Description of change
Add more info about the contribution process after PR submission.
Open to suggestions on any of this!