File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 39
39
### ` message`
40
40
41
41
- **Description**: check commit message formatting convention.
42
- - By default the rule follows [conventionalcommits ](https://www.conventionalcommits.org/).
42
+ - By default the rule follows [conventional commits ](https://www.conventionalcommits.org/).
43
43
- Default : ' true'
44
44
45
45
# ## `branch`
58
58
- **Description**: check committer author email
59
59
- Default : ' true'
60
60
61
+ # ## `commit-signoff`
62
+
63
+ - **Description**: check committer commit signature
64
+ - Default : ' true'
65
+
61
66
# ## `dry-run`
62
67
63
68
- **Description**: run checks without failing. exit code is 0 otherwise is 1.
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ inputs:
21
21
description : check committer author email
22
22
required : false
23
23
default : true
24
+ commit-signoff :
25
+ description : check committer commit signature
26
+ required : false
27
+ default : true
24
28
dry-run :
25
29
description : run checks without failing
26
30
required : false
48
52
BRANCH : ${{ inputs.branch }}
49
53
AUTHOR_NAME : ${{ inputs.author-name }}
50
54
AUTHOR_EMAIL : ${{ inputs.author-email }}
55
+ COMMIT_SIGNOFF : ${{ inputs.commit-signoff }}
51
56
DRY_RUN : ${{ inputs.dry-run }}
52
57
JOB_SUMMARY : ${{ inputs.job-summary }}
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ run_commit_check(){
17
17
if [[ " $AUTHOR_EMAIL " == " true" ]]; then
18
18
args=" $args --author-email"
19
19
fi
20
+ if [[ " $COMMIT_SIGNOFF " == " true" ]]; then
21
+ args=" $args --commit-signoff"
22
+ fi
20
23
21
24
echo " commit-check $args "
22
25
commit-check $args > result.txt
You can’t perform that action at this time.
0 commit comments