Skip to content

Commit 44465ca

Browse files
committed
chore: add PR title linting
1 parent de397f9 commit 44465ca

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/lint_pr.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "Validate PR Title""
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
permissions:
11+
pull-requests: read
12+
statuses: write
13+
14+
jobs:
15+
main:
16+
name: Validate PR Title
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: amannn/action-semantic-pull-request@v5
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
with:
23+
# Configure which types are allowed (Default is Angular, same as our release config)
24+
types: |
25+
fix
26+
feat
27+
docs
28+
style
29+
refactor
30+
perf
31+
test
32+
build
33+
ci
34+
chore
35+
revert
36+
# If the PR title is bad, this message will show up
37+
validateSingleCommit: false

0 commit comments

Comments
 (0)