-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add commit message format requirements
From now on, all new commit messages must adhere to the conventional commits v1.0.0 spec and their max line length is limited to 72 characters. The rules are enforced with commitlint, which is run as a pre-commit hook and also as a stage in the GitHub CI pipeline.
- Loading branch information
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const Configuration = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'header-max-length': [2, 'always', 72], | ||
'body-max-line-length': [2, 'always', 72], | ||
'body-leading-blank': [2, 'always'], | ||
}, | ||
}; | ||
|
||
module.exports = Configuration; |