File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,9 @@ jobs:
280280 and `squash!` commits.
281281- if `no_revert_sha1` is not empty, no validation is done on revert
282282 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
283286
284287# # Add pre-commit plugin
285288
Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ inputs:
1616 no_revert_sha1 :
1717 description : ' If not empty, reverted sha1 commit is not mandatory in revert commit message.'
1818 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
1928runs :
2029 using : " composite"
2130 steps :
3544 COMMIT_VALIDATOR_NO_JIRA : ${{ inputs.no_jira }}
3645 COMMIT_VALIDATOR_ALLOW_TEMP : ${{ inputs.allow_temp }}
3746 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 }}
3850 shell : bash
You can’t perform that action at this time.
0 commit comments