You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+88Lines changed: 88 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
When contributing to this repository, please first discuss the change you wish to make via issue,
4
4
email, or any other method with the owners of this repository before making a change. This avoids extra work for both you and us.
5
5
6
+
You must follow the [commit message guidelines](#commit-message-guidelines).
7
+
6
8
## Pull Request Process
7
9
8
10
1. Fork the repo and create your branch from `master`.
@@ -18,3 +20,89 @@ You can read our licence [here](https://github.com/scriptcoded/sql-highlight/blo
18
20
19
21
## License
20
22
By contributing, you agree that your contributions will be licensed under its MIT License.
23
+
24
+
## Commit message guidelines
25
+
26
+
> These guidelines were taken from the [semantic-release contribution guidelines](https://github.com/semantic-release/semantic-release/blob/master/CONTRIBUTING.md#commit-message-guidelines)
27
+
28
+
### Atomic commits
29
+
30
+
If possible, make [atomic commits](https://en.wikipedia.org/wiki/Atomic_commit), which means:
31
+
- a commit should contain exactly one self-contained functional change
32
+
- a functional change should be contained in exactly one commit
33
+
- a commit should not create an inconsistent state (such as test errors, linting errors, partial fix, feature with documentation etc...)
34
+
35
+
A complex feature can be broken down into multiple commits as long as each one maintains a consistent state and consists of a self-contained change.
36
+
37
+
### Commit message format
38
+
39
+
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special format that includes a **type**, a **scope** and a **subject**:
40
+
41
+
```commit
42
+
<type>(<scope>): <subject>
43
+
<BLANK LINE>
44
+
<body>
45
+
<BLANK LINE>
46
+
<footer>
47
+
```
48
+
49
+
The **header** is mandatory and the **scope** of the header is optional.
50
+
51
+
The **footer** can contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages).
52
+
53
+
### Revert
54
+
55
+
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
0 commit comments