File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change
1
+ checks :
2
+ - check : message
3
+ regex : ' ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ((\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff]) )?([\w ])+([\s\S]*)|(Merge).*|(fixup!.*)'
4
+ error : " The commit message should be structured as follows:\n\n
5
+ <type>[optional scope]: <description>\n
6
+ [optional body]\n
7
+ [optional footer(s)]\n\n
8
+ More details please refer to https://www.conventionalcommits.org"
9
+ suggest : please check your commit message whether matches above regex
10
+
11
+ - check : branch
12
+ regex : ^(bugfix|feature|release|hotfix|task|chore)\/.+|(master)|(main)|(HEAD)|(PR-.+)
13
+ error : ' Branches must begin with these types: bugfix/ feature/ release/ hotfix/ task/ chore/'
14
+ suggest : run command `git checkout -b type/branch_name`
15
+
16
+ - check : author_name
17
+ regex : ^[A-Za-zÀ-ÖØ-öø-ÿ ,.\'-]+$|.*(\[bot])
18
+ error : The committer name seems invalid
19
+ suggest : run command `git config user.name "Your Name"`
20
+
21
+ - check : author_email
22
+ regex : ^.+@.+$
23
+ error : The committer email seems invalid
24
+ suggest :
run command `git config user.email [email protected] `
25
+
26
+ - check : commit_signoff
27
+ regex : Signed-off-by:.*[A-Za-z0-9]\s+<.+@.+>
28
+ error : Signed-off-by not found in latest commit
29
+ suggest : run command `git commit -m "conventional commit message" --signoff`
30
+
31
+ - check : merge_base
32
+ regex : main
33
+ error : Current branch is not rebased onto target branch
34
+ suggest : Please ensure your branch is rebased with the target branch
Original file line number Diff line number Diff line change 22
22
env :
23
23
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # use GITHUB_TOKEN because of use pr-comments
24
24
with :
25
- message : false # temporarily disabled since emojis don't pass the regex test
25
+ message : true
26
26
branch : true
27
27
author-name : true
28
28
author-email : true
You can’t perform that action at this time.
0 commit comments