Skip to content

Commit 3f8f148

Browse files
author
github-manager
committed
ci: add PR title commitlint check
1 parent 57d5c72 commit 3f8f148

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/pr-title.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: PR Title Check
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
11+
jobs:
12+
pr-title-lint:
13+
name: Lint PR title
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: amannn/action-semantic-pull-request@v5
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
with:
20+
requireScope: false
21+
subjectPattern: ^.+$
22+
subjectPatternError: PR title must follow Conventional Commits format (e.g. "feat: add feature" or "fix(scope): fix bug").

0 commit comments

Comments
 (0)