Github Action to link a JIRA issue to the PR based on PR title
- create add-jira-description.yaml
name: Add JIRA Description
on:
pull_request:
types: [opened, reopened, edited, synchronize]
jobs:
link-jira:
runs-on: ubuntu-latest
steps:
- uses: jackpocket/link-jira-action@v1
with:
jira-base-url: https://FAKE.atlassian.net
jira-email: ${{ secrets.FAKE_JIRA_EMAIL }}
jira-token: ${{ secrets.FAKE_JIRA_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
Uses the PR Title (not the branch) for searching for JIRA issue to ensure that we have consistent PR titles.