Skip to content

Commit 316488b

Browse files
authored
fix: pr title check should now pass CN-271 (#688)
* fix: fix the linter. testing * fix: set commit message length to 100 * fix: fix github action
1 parent babb723 commit 316488b

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.commitlintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"rules": {
44
"body-leading-blank": [2, "always"],
55
"body-max-line-length": [0],
6-
"header-max-length": [2, "always", 72],
6+
"header-max-length": [2, "always", 100],
77
"type-empty": [2, "never"]
88
}
99
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PR Title Check
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize]
6+
7+
jobs:
8+
pr-title-check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check PR Title
12+
uses: amannn/action-semantic-pull-request@v5
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
with:
16+
# Configure the action to use conventional commit types
17+
types: |
18+
feat
19+
fix
20+
docs
21+
style
22+
refactor
23+
perf
24+
test
25+
chore
26+
ci
27+
build
28+
revert
29+
# Don't require scopes
30+
requireScope: false

0 commit comments

Comments
 (0)