Skip to content

Commit c3f874e

Browse files
committed
ci: semantic pull request
1 parent 6268d6b commit c3f874e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/lint-commit.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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]).+$
28+

0 commit comments

Comments
 (0)