Skip to content

Commit d15c0fc

Browse files
EGAMAGZcrowlKats
andauthored
ci: Add PR title linting workflow (#991)
Co-authored-by: Leo Kettmeir <[email protected]>
1 parent 4ff4d8a commit d15c0fc

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/title.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Lint PR title"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
permissions:
11+
pull-requests: read
12+
13+
jobs:
14+
main:
15+
name: Validate PR title
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: amannn/action-semantic-pull-request@v5
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
types: |
23+
BREAKING
24+
deprecation
25+
feat
26+
fix
27+
docs
28+
refactor
29+
perf
30+
test
31+
ci
32+
chore
33+
revert
34+
requireScope: false

0 commit comments

Comments
 (0)