Skip to content

Commit 6f44257

Browse files
authored
chore: commmit message check (#7)
* chore: commmit message check * chore: title need check * chore: update|Update for github
1 parent d8dcbda commit 6f44257

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'commit-message-check'
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
check-commit-message:
7+
name: check-subject
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: check-subject-type
11+
uses: gsactions/commit-message-checker@v2
12+
with:
13+
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request
14+
excludeDescription: 'true' # optional: this excludes the description body of a pull request
15+
accessToken: ${{ secrets.GITHUB_TOKEN }}
16+
pattern: '^(change:|feat:|improve:|perf:|dep:|docs:|test:|ci:|style:|refactor:|fix:|fixdoc:|fixup:|merge|Merge|update|Update|bumpver:|chore:|build:) .+$'
17+
flags: 'gm'
18+
error: |
19+
Subject line has to contain a commit type, e.g.: "chore: blabla" or a merge commit e.g.: "merge xxx".
20+
Valid types are:
21+
change - API breaking change
22+
feat - API compatible new feature
23+
improve - Become better without functional changes
24+
perf - Performance improvement
25+
dep - dependency update
26+
docs - docs update
27+
test - test udpate
28+
ci - CI workflow update
29+
refactor - refactor without function change.
30+
fix - fix bug
31+
fixdoc - fix doc
32+
fixup - minor change: e.g., fix sth mentioned in a review.
33+
bumpver - Bump to a new version.
34+
chore - Nothing important.
35+
build - bot: dependabot.

0 commit comments

Comments
 (0)