Skip to content

Commit cc78c22

Browse files
committed
Add Jira PR sync workflow
1 parent 5094118 commit cc78c22

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Sync Jira Based on PR Events
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, edited, ready_for_review, review_requested, labeled, unlabeled, closed]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
issues: write
11+
12+
jobs:
13+
jira-sync-pr-opened:
14+
if: github.event.action == 'opened' || github.event.action == 'edited'
15+
uses: scylladb/github-automation/.github/workflows/main_jira_sync_pr_opened.yml@main
16+
secrets:
17+
caller_jira_auth: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}
18+
19+
jira-sync-in-review:
20+
if: github.event.action == 'ready_for_review' || github.event.action == 'review_requested'
21+
uses: scylladb/github-automation/.github/workflows/main_jira_sync_in_review.yml@main
22+
secrets:
23+
caller_jira_auth: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}
24+
25+
jira-sync-add-label:
26+
if: github.event.action == 'labeled'
27+
uses: scylladb/github-automation/.github/workflows/main_jira_sync_add_label.yml@main
28+
secrets:
29+
caller_jira_auth: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}
30+
31+
jira-sync-remove-label:
32+
if: github.event.action == 'unlabeled'
33+
uses: scylladb/github-automation/.github/workflows/main_jira_sync_remove_label.yml@main
34+
secrets:
35+
caller_jira_auth: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}
36+
37+
jira-sync-pr-closed:
38+
if: github.event.action == 'closed'
39+
uses: scylladb/github-automation/.github/workflows/main_jira_sync_pr_closed.yml@main
40+
secrets:
41+
caller_jira_auth: ${{ secrets.USER_AND_KEY_FOR_JIRA_AUTOMATION }}

0 commit comments

Comments
 (0)