Skip to content

Commit a434bed

Browse files
authored
ci: Add PR title validator (#28)
1 parent f3925da commit a434bed

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# See https://github.com/amannn/action-semantic-pull-request
2+
name: 'PR Title is Conventional'
3+
4+
on:
5+
pull_request_target:
6+
types:
7+
- opened
8+
- edited
9+
- synchronize
10+
11+
jobs:
12+
main:
13+
name: Validate PR title
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: amannn/action-semantic-pull-request@v5
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
with:
20+
types: |
21+
build
22+
chore
23+
ci
24+
docs
25+
feat
26+
fix
27+
perf
28+
refactor
29+
revert
30+
style
31+
test
32+
subjectPattern: ^[A-Z].+$
33+
subjectPatternError: |
34+
The subject of the PR must begin with an uppercase letter.

0 commit comments

Comments
 (0)