Skip to content
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

CONTRIBUTING.md: update pull request guidelines #598

Merged
merged 2 commits into from
Feb 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ themselves. There are other guides about contributing to other parts of the Exer
* [Beta-Testing a Language Track](#beta-testing-a-language-track)
* [Maintaining a Track](#maintaining-a-track)
* [Useful Tidbits](#useful-tidbits)
* [Pull Request Guidelines](#pull-request-guidelines)
* [Exercise Versioning](#exercise-versioning)
* [Anatomy of an Exercise](#anatomy-of-an-exercise)
* [config.json](#config-json)
Expand Down Expand Up @@ -591,13 +592,22 @@ scenarios in this guide.

1. Put the name of the exercise in the subject line of the commit.
E.g. `hamming: Add test case for strands of unequal length`
1. The subject line should be a one-sentence summary, and should not include
the word *and* (explicitly or implied).
1. Any extra detail should be provided in the body of the PR.
1. Don't submit unrelated changes in the same pull request.
1. If you had a bit of churn in the process of getting the change right,
squash your commits.
1. If you had to refactor in order to add your change, then we'd love to
see two commits: First the refactoring, then the added behavior. It's
fine to put this in the same pull request, unless the refactoring is
huge and would make it hard to review both at the same time.
1. If you are referencing another issue or pull-request, for instance
*closes #XXX* or *see #XXX*, please include the reference in the body of the PR,
rather than the subject line. This is simply because the subject line doesn't
support markdown, and so these don't get turned into clickable links. It makes
it harder to follow and to go look at the related issue or PR.
1. Please also refer to the guidelines for [commit messages](#commit-messages).

Once you've submitted a pull request, one or more of the track maintainers
will review it. Some tracks are less active and might not have someone
Expand Down Expand Up @@ -748,9 +758,11 @@ Messages
Suck?](https://www.youtube.com/watch?v=8YjSty6bfog).
It's funny and enlightening, and you should watch it.

Tim Pope wrote an article that has very clear guidelines about how to write
excellent commit messages. [Please read
it](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
Two articles that have very clear guidelines about how to write
excellent commit messages are Tim Pope's
[A Note About Git Commit Messages](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
and Chris Beams' [How to Write a Git Commit Message](https://chris.beams.io/posts/git-commit/).
Please read them.

##### Examples

Expand Down