Skip to content

Commit e024f85

Browse files
authored
ci: add a conventional commit check for PR title (#106)
1 parent 5885675 commit e024f85

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Check PR title
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- reopened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: dfinity/conventional-pr-title-action@v4.0.0
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+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)