Skip to content

Commit e599fb1

Browse files
authored
chore(ci): add conventional-pr.yml for PR validation (#21)
1 parent 428a45b commit e599fb1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: conventional-pr
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
types:
7+
- opened
8+
- edited
9+
- synchronize
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
statuses: write
14+
jobs:
15+
lint-pr:
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 15
18+
if: ${{ !startsWith(github.event.head_commit.message, '[Release]') }}
19+
steps:
20+
- uses: actions/checkout@v6
21+
- uses: amannn/action-semantic-pull-request@v6
22+
with:
23+
requireScope: false
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)