Skip to content

Commit 518e66b

Browse files
authored
style: add a way to check PR title automatically (#298)
Signed-off-by: spacewander <[email protected]>
1 parent 2e8bb6e commit 518e66b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Lint PR"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@v4
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
with:
19+
# Configure which types are allowed.
20+
# Default: https://github.com/commitizen/conventional-commit-types
21+
types: |
22+
bugfix # bug fixes
23+
change # backward incompatible changes
24+
doc # documentation changes including code comments
25+
editor # code editor related configurations
26+
feature # implementing a new feature
27+
optimize # performance optimizations
28+
refactor # code refactoring and other code rearrangement
29+
style # coding style changes
30+
tests # test suite changes

0 commit comments

Comments
 (0)