Skip to content

Commit d765d71

Browse files
matiyasclaude
andcommitted
ci: switch to commitlint with conventional commits config
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 46680f1 commit d765d71

2 files changed

Lines changed: 10 additions & 23 deletions

File tree

.commitlintrc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
extends:
2+
- "@commitlint/config-conventional"
3+
4+
rules:
5+
body-max-line-length: [1, "always", 100]
6+
header-max-length: [2, "always", 72]

.github/workflows/commitlint.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Commit Lint
1+
name: Commitlint
22

33
on:
44
pull_request:
5-
types: [opened, synchronize, reopened, edited]
5+
branches: [main]
66

77
jobs:
88
commitlint:
@@ -11,25 +11,6 @@ jobs:
1111
- uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0
14-
15-
- name: Validate PR title
16-
uses: amannn/action-semantic-pull-request@v5
17-
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
- uses: wagoid/commitlint-github-action@v6
1915
with:
20-
types: |
21-
feat
22-
fix
23-
docs
24-
style
25-
refactor
26-
perf
27-
test
28-
build
29-
ci
30-
chore
31-
revert
32-
requireScope: false
33-
subjectPattern: ^[a-z].+$
34-
subjectPatternError: |
35-
The subject "{subject}" must start with a lowercase letter.
16+
configFile: .commitlintrc.yml

0 commit comments

Comments
 (0)