Skip to content

Commit ea501ce

Browse files
authored
feat: add pr.yml to check title (#352)
1 parent c2a39be commit ea501ce

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pr.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Check PR title
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- reopened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: aslafy-z/[email protected]
15+
with:
16+
success-state: Title follows the specification.
17+
failure-state: Title does not follow the specification.
18+
context-name: conventional-pr-title
19+
preset: conventional-changelog-angular@latest
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)