Skip to content

Commit 7f8a388

Browse files
committed
build: update commitlint to allow longer content
1 parent 5781b6a commit 7f8a388

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.github/.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx @commitlint/cli --extends @commitlint/config-conventional --edit "$1"
4+
npx @commitlint/cli --config .github/.husky/commitlint.json --edit "$1"

.github/.husky/commitlint.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"],
3+
"rules": {
4+
"body-max-length": [0, "always"],
5+
"body-max-line-length": [0, "always"],
6+
"footer-max-length": [0, "always"],
7+
"footer-max-line-length": [0, "always"],
8+
"header-max-length": [0, "always"],
9+
"scope-max-length": [0, "always"],
10+
"subject-max-length": [0, "always"],
11+
"type-max-length": [0, "always"]
12+
}
13+
}

.github/workflows/pull-request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
with:
2020
fetch-depth: 0
2121
- uses: wagoid/commitlint-github-action@v5
22+
with:
23+
configFile: .github/.husky/commitlint.json
2224

2325
tests:
2426
needs: pre-run

0 commit comments

Comments
 (0)