Skip to content

Commit 1d741ac

Browse files
committed
docs: add 'commit message convention'
1 parent 2695df0 commit 1d741ac

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,9 @@ class SampleClass {
113113
}
114114
}
115115
```
116+
117+
## 💬 Contributing
118+
* [Commit convention](https://github.com/namjug-kim/reactive-crypto/blob/master/docs/COMMIT_MESSAGE_CONVENTION.md)
119+
120+
## 📜 License
121+
* Reactive Crypto is Open Source Software released under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)

docs/COMMIT_MESSAGE_CONVENTION.md

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Commit Message Convention
2+
3+
## The reasons for these conventions:
4+
* automatic generating of the changelog
5+
* simple navigation through git history (eg. ignoring style changes)
6+
7+
## Format of the commit message:
8+
```
9+
<type>: <subject>
10+
11+
<body>
12+
13+
<footer>
14+
```
15+
16+
## Message subject (first line)
17+
First line cannot be longer than 70 characters, second line is always blank and other lines should be wrapped at 80 characters.
18+
19+
### Allowed <type> values:
20+
* feat (new feature)
21+
* fix (bug fix)
22+
* docs (changes to documentation)
23+
* style (formatting, missing semi colons, etc; no code change)
24+
* refactor (refactoring production code)
25+
* test (adding missing tests, refactoring tests; no production code change)
26+
* chore (updating grunt tasks etc; no production code change)
27+
28+
## Message body
29+
* uses the imperative, present tense: “change” not “changed” nor “changes”
30+
* includes motivation for the change and contrasts with previous behavior
31+
32+
For more info about message body, see:
33+
* http://365git.tumblr.com/post/3308646748/writing-git-commit-messages
34+
* http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
35+
36+
## Message footer
37+
### Referencing issues
38+
Closed issues should be listed on a separate line in the footer prefixed with "Closes" keyword like this:
39+
```
40+
Closes #234
41+
```
42+
43+
or in case of multiple issues:
44+
45+
```
46+
Closes #123, #245, #992
47+
```
48+
49+
## Breaking changes
50+
All breaking changes have to be mentioned in footer with the description of the change, justification and migration notes.
51+
```
52+
BREAKING CHANGE:
53+
54+
`port-runner` command line option has changed to `runner-port`, so that it is
55+
consistent with the configuration file syntax.
56+
57+
To migrate your project, change all the commands, where you use `--port-runner`
58+
to `--runner-port`.
59+
This document is based on AngularJS Git Commit Msg Convention.
60+
```
61+
62+
This document is based on AngularJS Git Commit Msg Convention.

0 commit comments

Comments
 (0)