Skip to content

Commit 1e09ac0

Browse files
Merge pull request #20 from lumapps/forgot_github_action
Forgot GitHub action
2 parents 41e4f47 + 2ffd5a5 commit 1e09ac0

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pre-commit=./venv/bin/pre-commit
1111
.PHONY: lint venv
1212

1313
venv:
14-
python3.7 -m venv venv
14+
python3 -m venv venv
1515
$(pip) install pre-commit
1616
$(pre-commit) install -t commit-msg
1717

README.md

Lines changed: 3 additions & 0 deletions
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

action.yml

Lines changed: 12 additions & 0 deletions
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)