Skip to content

Commit e3020bc

Browse files
committed
chore(github-action): add new options to github-action
1 parent 41e4f47 commit e3020bc

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Diff for: README.md

+3
Original file line numberDiff line numberDiff 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

Diff for: action.yml

+12
Original file line numberDiff line numberDiff 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
1928
runs:
2029
using: "composite"
2130
steps:
@@ -35,4 +44,7 @@ runs:
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

0 commit comments

Comments
 (0)