File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,9 @@ jobs:
280
280
and `squash!` commits.
281
281
- if `no_revert_sha1` is not empty, no validation is done on revert
282
282
commits.
283
+ - ` jira_in_header` jira reference can be put in the commit header.
284
+ - ` header_length` allow to override the max length of the header line.
285
+ - ` jira_types` takes a space separated list `"feat fix"` as a parameter to override the default types requiring a jira
283
286
284
287
# # Add pre-commit plugin
285
288
Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ inputs:
16
16
no_revert_sha1 :
17
17
description : ' If not empty, reverted sha1 commit is not mandatory in revert commit message.'
18
18
required : false
19
+ header_length :
20
+ description : ' If not empty, max header_length'
21
+ required : false
22
+ jira_types :
23
+ description : ' If not empty, space separated list of types that require Jira refs'
24
+ required : false
25
+ jira_in_header :
26
+ description : ' If not empty, allow for jira ref in header'
27
+ required : false
19
28
runs :
20
29
using : " composite"
21
30
steps :
35
44
COMMIT_VALIDATOR_NO_JIRA : ${{ inputs.no_jira }}
36
45
COMMIT_VALIDATOR_ALLOW_TEMP : ${{ inputs.allow_temp }}
37
46
COMMIT_VALIDATOR_NO_REVERT_SHA1 : ${{ inputs.no_revert_sha1 }}
47
+ GLOBAL_JIRA_TYPES : ${{ inputs.jira_types }}
48
+ GLOBAL_MAX_LENGTH : ${{ inputs.header_length }}
49
+ GLOBAL_JIRA_IN_HEADER : ${{ inputs.jira_in_header }}
38
50
shell : bash
You can’t perform that action at this time.
0 commit comments