Small action to call jira webhook by github trigger.
- Issue Jira Permanent Token and set it to
JIRA_TOKENsecret. - Set
JIRA_WEBHOOKsecret, e.g.https://automation.atlassian.com/pro/hooks/abcde - Create your workflow and use
4u/jira-webhook-action@v1action, e.g..github/workflows/review-requested.yml:
name: Review Requested
on:
pull_request:
types: [review_requested]
jobs:
review-requested:
runs-on: ubuntu-latest
steps:
- name: 'set code review state'
uses: 4u/jira-webhook-action@v1
with:
github_token: ${{ github.token }}
data: '{"action": "review_requested"}'
webhooks: |
${{ secrets.JIRA_WEBHOOK_1 }}
${{ secrets.JIRA_WEBHOOK_2 }}
${{ secrets.JIRA_WEBHOOK_3 }}