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: README.md
+31-3
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,33 @@
8
8
9
9
commitlint is a tool designed to lint your commit messages according to the [Conventional Commits](https://www.conventionalcommits.org/) standard for your pre-commit hook and GitHub Actions.
10
10
11
+
## Conventional Commits
12
+
13
+
A conventional commit message follows a specific format that includes a prefix indicating the type of change, an optional scope for context, and a concise description of the modification.
14
+
This structure improves readability, facilitates automated changelog generation, and ensures a consistent commit history.
15
+
16
+
The commit message should follow this structure:
17
+
18
+
```
19
+
<type>(<optional scope>): <description>
20
+
21
+
[Optional body]
22
+
```
23
+
24
+
**Type:** Indicates the type of change, such as build, ci, docs, feat, fix, perf, refactor, style, test, chore, revert, or bump.
25
+
E.g., `feat: add JSON parser`.
26
+
27
+
**Scope:** Additional contextual information.
28
+
E.g., `feat(parser): add JSON parser`.
29
+
30
+
**Description:** Brief description of the commit.
31
+
32
+
**Body:** A detailed description of the commit.
33
+
34
+
For more details, please refer to the Conventional Commits specification at https://www.conventionalcommits.org/en/v1.0.0/
35
+
36
+
> NOTE: commitlint also checks the length of the commit header (**max 72 characters**). The commit header refers to the first line of the commit message (excluding the body).
37
+
11
38
## How to use
12
39
13
40
### For pre-commit
@@ -83,16 +110,16 @@ jobs:
83
110
| 1 | **exit_code** | Integer | The exit code of the commitlint step. |
84
111
| 2 | **status** | String | The outcome of the commitlint step. Possible values: 'success' or 'failure'. |
0 commit comments