https://github.com/joomcode/jira-webhook-action
https://github.com/joomcode/jira-webhook-action
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/joomcode/jira-webhook-action
- Owner: joomcode
- License: mit
- Created: 2023-08-01T09:59:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-02T18:48:01.000Z (over 2 years ago)
- Last Synced: 2025-02-16T00:32:06.259Z (11 months ago)
- Language: TypeScript
- Size: 425 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 4u/jira-webhook-action@v1
Small action to call jira webhook by github trigger.
## How to use
1. Issue Jira Permanent Token and set it to `JIRA_TOKEN` secret.
2. Set `JIRA_WEBHOOK` secret, e.g. `https://automation.atlassian.com/pro/hooks/abcde`
3. Create your workflow and use `4u/jira-webhook-action@v1` action, 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 }}
```