Skip to content

Commit

Permalink
Merge pull request #598 from robphoenix/add/PR-recommendations
Browse files Browse the repository at this point in the history
CONTRIBUTING.md: update pull request guidelines
  • Loading branch information
robphoenix authored Feb 15, 2017
2 parents 1dfd8e0 + 22c48c2 commit b574e74
Showing 1 changed file with 15 additions and 3 deletions.
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

0 comments on commit b574e74

Please sign in to comment.