Skip to content

Commit e770b1d

Browse files
authored
Add comment step to Jira status transition workflow
Added a step to add a comment on Jira issues when transitioning to 'Done'. The comment includes the PR title and link.
1 parent 850069b commit e770b1d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/main_update_jira_status_to_done.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,28 @@ jobs:
5252
transition_id: "141"
5353
secrets:
5454
jira_auth: ${{ secrets.caller_jira_auth }}
55+
56+
add_comment:
57+
needs: [extract, transition]
58+
59+
# Expand each Jira key into a separate workflow run
60+
strategy:
61+
fail-fast: false
62+
matrix:
63+
jira_key: ${{ fromJson(needs.extract.outputs['jira-keys-json']) }}
64+
65+
# Skip fake placeholder key
66+
if: ${{ matrix.jira_key != '__NO_KEYS_FOUND__' }}
67+
68+
# Call the reusable workflow
69+
uses: scylladb/github-automation/.github/workflows/jira_add_comment.yml@automation-staging-branch
70+
71+
with:
72+
jira_key: ${{ matrix.jira_key }}
73+
comment: >
74+
This issue was closed due to the merge of PR
75+
[${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }}).
76+
77+
secrets:
78+
jira_auth: ${{ secrets.caller_jira_auth }}
79+

0 commit comments

Comments
 (0)