-
Notifications
You must be signed in to change notification settings - Fork 146
21 lines (20 loc) · 1.02 KB
/
block_merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Check commit and PR compliance
name: Check commit message compliance
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
check-commit-pr:
name: Check commit and PR
runs-on: ubuntu-20.04
steps:
- name: Check first line
uses: gsactions/commit-message-checker@16fa2d5de096ae0d35626443bcd24f1e756cafee # v2.0.0
with:
pattern: '^(feat|fix|test|bench|docs|chore|refactor|perf)\((compiler|backend|frontend|optimizer|tools|ci|common).*\): '
flags: 'gs'
error: 'Your first line has to contain a commit type and scope like "feat(my_feature): msg".'
excludeDescription: 'true' # optional: this excludes the description body of a pull request
excludeTitle: 'true' # optional: this excludes the title of a pull request
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request
accessToken: ${{ secrets.GITHUB_TOKEN }} # github access token is only required if checkAllCommitMessages is true