Skip to content

Commit 8bd2ac1

Browse files
committed
ci: semantic pull request
1 parent 8cb756b commit 8bd2ac1

File tree

4 files changed

+12
-1258
lines changed

4 files changed

+12
-1258
lines changed

.github/workflows/lint-commit.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Lint Commit
22
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- reopened
7+
- synchronize
8+
- edited
39
pull_request:
410
types:
511
- opened
@@ -14,7 +20,9 @@ jobs:
1420

1521
steps:
1622
- uses: actions/checkout@v4
17-
- name: Install Deps
18-
run: yarn install
19-
- name: Lint PR Title
20-
run: echo "${{ github.event.pull_request.title }}" | yarn commitlint
23+
- uses: amannn/action-semantic-pull-request@v5
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
subjectPattern: ^(?![A-Z]).+$
28+

commitlint.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)