You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Jira Extract Issue Keys
v0.2-alpha
Pre-release
This Github Action parses all the possible issue keys from the commit message.
Issue keys must use capital letters and must have a dash ('-') between the letters and digits. There should be no spaces between the characters of an issue key.
Example: EXAMPLE-123 TH-1S 1s a commit-1
the only issue key is EXAMPLE-123
Inside your .yml file there should be something that looks like this required variable:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
For more information on Github Environment Variables, see https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
uses: HighwayThree/jira-extract-issue-keys@master
with:
is-pull-request: ${{ github.event_name == 'pull_request' }}
parse-all-commits: ${{ github.event_name == 'push' }}
commit-message: 'EXAMPLE-1 message'
is-pull-request
- is true if the GitHub event is a pull request. Default value is false.parse-all-commits
- is true if the GitHub event is a push. Default value is false.commit-message
- commit message to be parsed for jira keys. If it is hardcoded like the example above, the smart commits do not send commit information to the hardcoded Jira issues. The default is the commit message, where the smart commits do send information to the issue keys found in the user's commit message.
jira-keys
- All of the keys found in the commit.- If is-pull-request was true, then it has all of the keys from all of the commits that were found in the pull request.
An example of a pipeline using this action can be found at: