Skip to content

Commit 65ac054

Browse files
committed
Merge pull request OpenFeign#349 from Netflix/commit-log-notes
Adds commit log guidelines
2 parents d503d05 + d13d5ad commit 65ac054

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ Please read [HACKING](./HACKING.md) prior to raising change.
33

44
If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request (on a branch other than `master` or `gh-pages`).
55

6+
## Pull Requests
7+
Pull requests eventually need to resolve to a single commit. The commit log should be easy to read as a change log. We use the following form to accomplish that.
8+
* First line is a <=72 character description in present tense, explaining what this does.
9+
* Ex. "Fixes regression on encoding vnd headers" > "Fixed encoding bug", which forces the reader to look at code to understand impact.
10+
* Do not include issue links in the first line as that makes pull requests look weird.
11+
* Ex. "Addresses #345" becomes a pull request title: "Addresses #345 #346"
12+
* After the first line, use markdown to concisely summarize the implementation.
13+
* This isn't in leiu of comments, and it assumes the reader isn't intimately familar with code structure.
14+
* If the change closes an issue, note that at the end of the commit description ex. "Fixes #345"
15+
* GitHub will automatically close change with this syntax.
16+
* If the change is notable, also update the [change log](./CHANGELOG.md) with your summary description.
17+
* The unreleased minor version is often a good default.
18+
19+
## Code Style
620
When submitting code, please ensure you follow the [Google Style Guide](http://google-styleguide.googlecode.com/svn/trunk/javaguide.html). For example, you can format code with IntelliJ 13 using [this file](https://google.github.io/styleguide/intellij-java-google-style.xml) and with IntelliJ 15 using [this file](https://raw.githubusercontent.com/garukun/styleguide/add-intellij-15-java/intellij-15-java-google-style.xml).
721

822
## License

0 commit comments

Comments
 (0)