Skip to content

Commit 4881be3

Browse files
authored
chore: pr lint add (#1593)
1 parent 554dbda commit 4881be3

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
@@ -1,6 +1,6 @@
11
{
22
"rules": {
3-
"header-max-length": [2, "always", 72],
3+
"header-max-length": [2, "always", 100],
44
"body-leading-blank": [2, "always"],
55
"type-empty": [2, "never"],
66
"type-enum": [

.github/workflows/pr-title-check.yml

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)