Skip to content

Commit e3b1b3d

Browse files
authored
Add workflow to update Jira status to Done
1 parent e4b7570 commit e3b1b3d

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Update Jira Status - Done
2+
3+
on:
4+
workflow_call:
5+
secrets:
6+
caller_jira_auth:
7+
required: true
8+
9+
jobs:
10+
extract:
11+
uses: scylladb/github-automation/.github/workflows/extract_jira_keys.yml@main
12+
with:
13+
pr_title: ${{ github.event.pull_request.title }}
14+
pr_body: ${{ github.event.pull_request.body }}
15+
16+
debug:
17+
needs: extract
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Debug data
21+
env:
22+
GITHUB_CONTEXT: ${{ toJson(github) }}
23+
run: |
24+
echo "event_name='${{ github.event_name }}'"
25+
echo "action='${{ github.event.action }}'"
26+
echo "jira-keys-json='${{ needs.extract.outputs['jira-keys-json'] }}'"
27+
echo "~~~~~~~~~~~ GitHub Context ~~~~~~~~~~~"
28+
echo "$GITHUB_CONTEXT"
29+
30+
31+
details:
32+
needs: extract
33+
uses: scylladb/github-automation/.github/workflows/extract_jira_issue_details.yml@automation-staging-branch
34+
with:
35+
jira_keys_json: ${{ needs.extract.outputs['jira-keys-json'] }}
36+
secrets:
37+
jira_auth: ${{ secrets.caller_jira_auth }}
38+
39+
apply_labels:
40+
needs: [extract, details]
41+
uses: scylladb/github-automation/.github/workflows/apply_labels_to_pr.yml@automation-staging-branch
42+
with:
43+
pr_number: ${{ github.event.pull_request.number }}
44+
labels_csv: ${{ needs.details.outputs.labels_csv }}
45+
46+
transition:
47+
needs: [extract, details]
48+
uses: scylladb/github-automation/.github/workflows/jira_transition.yml@automation-staging-branch
49+
with:
50+
details_csv: ${{ needs.details.outputs.csv }} # full CSV text
51+
transition_name: "Done"
52+
transition_id: "141"
53+
secrets:
54+
jira_auth: ${{ secrets.caller_jira_auth }}

0 commit comments

Comments
 (0)