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
+29-26Lines changed: 29 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,33 +82,36 @@ a comment.
82
82
### Commit messages
83
83
84
84
Follow the [conventional commits guidelines][conventional_commits] to *make reviews easier* and to make
85
-
the VCS/git logs more valuable. The general structure of a commit message is:
86
-
87
-
```
88
-
<type>([optional scope]): <description>
89
-
90
-
[optional body]
91
-
92
-
[optional footer(s)]
93
-
```
85
+
the VCS/git logs more valuable. The structure of a commit message is:
86
+
87
+
type(scope): subject
88
+
89
+
Problem:
90
+
...
91
+
92
+
Solution:
93
+
...
94
+
95
+
- Commit message **subject** (you can **ignore this for "fixup" commits** or any commits you expect to be squashed):
96
+
- Prefix with a [_type_](https://github.com/commitizen/conventional-commit-types/blob/master/index.json):
97
+
- `build ci docs feat fix perf refactor revert test vim-patch`
98
+
- Append an optional `(scope)` such as `(lsp)`, `(treesitter)`, `(float)`, …
99
+
- Use the _imperative voice_: "Fix bug" rather than "Fixed bug" or "Fixes bug."
100
+
- Keep it short (under 72 characters).
101
+
- Commit message **body** (detail):
102
+
- Concisely describe the Problem/Solution in the commit **body**. [Describing the problem](https://lamport.azurewebsites.net/pubs/state-the-problem.pdf)
103
+
_independently of the solution_ often leads to a better understanding for you, reviewers, and future readers.
104
+
```
105
+
Problem:
106
+
107
+
Solution:
108
+
```
109
+
- Indicate breaking API changes with "!" after the type, and a "BREAKING CHANGE" footer. Example:
110
+
```
111
+
refactor(provider)!: drop support for Python 2
94
112
95
-
- Prefix the commit subject with one of these [_types_](https://github.com/commitizen/conventional-commit-types/blob/master/index.json):
0 commit comments