Skip to content

Commit 5c1b009

Browse files
authored
feat: add pr title check (#12)
1 parent 9c1a5e3 commit 5c1b009

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/pr.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Lint PR"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
11+
jobs:
12+
main:
13+
name: Validate PR title
14+
runs-on: ubuntu-latest
15+
permissions:
16+
pull-requests: read
17+
steps:
18+
- uses: amannn/action-semantic-pull-request@v5
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
# Configure which types are allowed (newline-delimited).
23+
# Default: https://github.com/commitizen/conventional-commit-types
24+
types: |
25+
fix
26+
feat
27+
ci
28+
chore
29+
test

0 commit comments

Comments
 (0)