-
-
Notifications
You must be signed in to change notification settings - Fork 32k
doc: update COLLABORATOR_GUIDE and onboarding #9396
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
Conversation
R=@Trott |
@@ -125,6 +125,7 @@ Additionally: | |||
- Except when updating dependencies, all commits should be self | |||
contained (meaning every commit should pass all tests). This makes | |||
it much easier when bisecting to find a breaking change. | |||
- The [core-validate-commit](https://github.com/evanlucas/core-validate-commit#core-validate-commit) command validates the commit message for a particular commit in node core. |
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.
Can you break this line in to two lines and align the second line right below the first one?
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.
Also, the hashtag might not be absolutely necessary, as the README is right there in the landing page.
Can you please format the commit message as per these guidelines? |
@thefourtheye, would you kindly check now? |
#1003 in nodejs/nodejs.org |
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.
This change mentions the tool, but is missing useful context.
- The onboarding doc mentions it as a step after
git push upstream master
which is likely to give people the wrong idea about when they should run the command. - Is the tool required or suggested? (It's suggested.)
- How/when do you run it? (Provide an example command and sample output.)
- I think this should be in onboarding-extras.md and linked to from onboarding.md.
@@ -204,6 +204,7 @@ Landing a PR | |||
* Optional: Force push the amended commit to the branch you used to open the pull request. If your branch is called `bugfix`, then the command would be `git push --force-with-lease origin master:bugfix`. When the pull request is closed, this will cause the pull request to show the purple merged status rather than the red closed status that is usually used for pull requests that weren't merged. Only do this when landing your own contributions. | |||
* `git push upstream master` | |||
* Close the pull request with a "Landed in `<commit hash>`" comment. | |||
* Additionally: The [core-validate-commit](https://github.com/evanlucas/core-validate-commit) command validates the commit message for a particular commit in node core. |
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: Remove Additionally:
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.
@Trott, would it be appropriate of onboarding.md to point to merely two lines in onboarding-extras.md? Or shall I include it in onboarding.md itself?
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.
Shall I write Optional:
or Suggested:
before the bullet point to point to the fact that the core-validate-commit is not a required tool?
@Trott Please check the latest commit |
@@ -204,6 +204,7 @@ Landing a PR | |||
* Optional: Force push the amended commit to the branch you used to open the pull request. If your branch is called `bugfix`, then the command would be `git push --force-with-lease origin master:bugfix`. When the pull request is closed, this will cause the pull request to show the purple merged status rather than the red closed status that is usually used for pull requests that weren't merged. Only do this when landing your own contributions. | |||
* `git push upstream master` | |||
* Close the pull request with a "Landed in `<commit hash>`" comment. | |||
* Optional: The [core-validate-commit](https://github.com/evanlucas/core-validate-commit) is a useful tool to help validate the commit message for a particular commit in node core. Refer [this](https://github.com/evanlucas/core-validate-commit/blob/master/bin/usage.txt) for examples. |
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 know I said to include usage and examples, but the link is superfluous. Just remove the second sentence entirely. The first sentence is fine, but the entire bullet point should be moved above the line 204, as you'd want to validate the commit after applying metadata but before pushing the commit to a repository.
@@ -125,7 +125,9 @@ Additionally: | |||
- Except when updating dependencies, all commits should be self | |||
contained (meaning every commit should pass all tests). This makes | |||
it much easier when bisecting to find a breaking change. | |||
|
|||
- The [core-validate-commit](https://github.com/evanlucas/core-validate-commit) | |||
command validates the commit message for a particular commit in node core. |
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: validates
-> can be used to validate
Getting closer. Still a few small issues (which I've left comments about). |
@Trott Please check |
- The [core-validate-commit](https://github.com/evanlucas/core-validate-commit) | ||
command can be used to validate the commit message for a particular | ||
commit in node core. | ||
|
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: Remove whitespace on empty line.
Works for me. Thanks! |
@Tanuja-Sawant Github doesn't keep save the commits you added for this PR, it just compares You should be able to get your commits back though. If you type Edit: If you have other changes that you want to keep on your master branch, you should create a new branch for them before you do the That's why it's generally a good reason to create a named branch for each pr (I normally do something like |
Checklist
Affected core subsystem(s)
doc
Description of change
COLLABORATOR_GUIDE.md
anddoc/onboarding.md
are updated to mentioncore-validate-commit as a useful tool in validating commit messages.
Ref: #9328