-
Notifications
You must be signed in to change notification settings - Fork 157
44 lines (43 loc) · 1.82 KB
/
commit-message-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: 'commit-message-check'
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
push:
branches:
jobs:
check-commit-message:
name: check-subject
runs-on: ubuntu-latest
steps:
- name: check-subject-type
uses: gsactions/commit-message-checker@v1
with:
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request
excludeDescription: 'true' # optional: this excludes the description body of a pull request
excludeTitle: 'true' # optional: this excludes the title of a pull request
accessToken: ${{ secrets.GITHUB_TOKEN }}
pattern: '^(DataChange:|Change:|Feature:|Improve:|Perf:|Dep:|Doc:|Test:|CI:|Refactor:|Fix:|Fixdoc:|Fixup:|Merge|BumpVer:|Chore:|Build\(deps\):) .+$'
flags: 'gm'
error: |
Subject line has to contain a commit type, e.g.: "Change: blabla" or a merge commit e.g.: "Merge xxx".
Valid types are:
DataChange - Persistent data change
Change - API breaking change
Feature - API compatible new feature
Improve - Become better without functional changes
Perf - Performance improvement
Dep - dependency update
Doc - doc update
Test - test udpate
CI - CI workflow update
Refactor - refactor without function change.
Fix - fix bug
Fixdoc - fix doc
Fixup - minor change: e.g., fix sth mentioned in a review.
BumpVer - Bump to a new version.
Chore - Nothing important.
Build(deps) - bot: dependabot.