Skip to content

Commit 92abfd3

Browse files
committed
ci: semantic pr action
1 parent c6765d9 commit 92abfd3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/lint-commit.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Lint Commit
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- reopened
7+
- synchronize
8+
- edited
9+
pull_request:
10+
types:
11+
- opened
12+
- reopened
13+
- synchronize
14+
- edited
15+
16+
jobs:
17+
commitlint:
18+
runs-on: ubuntu-latest
19+
name: commitlint
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: amannn/action-semantic-pull-request@v5
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
subjectPattern: ^(?![A-Z]).+$

0 commit comments

Comments
 (0)