Skip to content

GitHub action for connecting GitHub PRs and Jira cards

License

Notifications You must be signed in to change notification settings

verkstedt/jira-integration-action

 
 

Repository files navigation

Jira integration action

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 }}

Debugging

  • Create mock-inputs.json with input values AND additional test-issue-id.
  • Run node index.mjs.

About

GitHub action for connecting GitHub PRs and Jira cards

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%