Skip to content

Commit 4d5f7be

Browse files
authored
Merge pull request #1 from CharlieSu/pr-title-test
feat: Add PR title format check
2 parents 166f522 + 382168d commit 4d5f7be

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'PR Name Check'
2+
on:
3+
pull_request:
4+
types:
5+
# Check title when opened.
6+
- opened
7+
# Check title when new commits are pushed.
8+
# Required to use as a status check.
9+
- synchronize
10+
- edited
11+
- reopened
12+
13+
jobs:
14+
check_pr_title:
15+
runs-on: ubuntu-18.04
16+
steps:
17+
- uses: deepakputhraya/action-pr-title@master
18+
with:
19+
# Based on .github/semantic.yml and allows commits with anything inside prefix(<anything here passes>)
20+
allowed_prefixes: 'build,ci,docs,feat,fix,perf,refactor,test'
21+
github_token: ${{ github.token }}

0 commit comments

Comments
 (0)