Based on Remato’s Trello integration action.
When PR status changes, moves Jira tickets to the appropriate column on the board.
name: Jira integration
on:
pull_request:
types:
- opened
- edited
- closed
- reopened
- ready_for_review
- converted_to_draft
issue_comment:
types:
- created
- edited
jobs:
jira:
runs-on: ubuntu-latest
steps:
- uses: verkstedt/jira-integration-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# Hint: Set these on an organisation level and override in repos only when necessary
jira-domain: ${{ vars.JIRA_DOMAIN }}
jira-user: ${{ secrets.JIRA_USER }}
# Create one at: https://id.atlassian.com/manage-profile/security/api-tokens
# Note that user whose API token is used, will “touch” all of
# the issues, so it’s best to create a dedicated user for
# this sort of things.
jira-api-token: ${{ secrets.JIRA_API_TOKEN }}
jira-status-pr-draft: ${{ vars.JIRA_STATUS_PR_DRAFT }}
jira-status-pr-ready: ${{ vars.JIRA_STATUS_PR_READY }}
jira-status-pr-merged: ${{ vars.JIRA_STATUS_PR_MERGED }}
- Create
mock-inputs.json
with input values AND additionaltest-issue-id
. - Run
node index.mjs
.