Skip to content

Commit 6ee853d

Browse files
committed
Apply the fix to the other workflow
1 parent 92ec965 commit 6ee853d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/review-submitted-slack-notification.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,20 @@ jobs:
2424
if: ${{ github.event.review.state != 'commented' || github.event.review.body != '' }}
2525
runs-on: ubuntu-latest
2626
steps:
27+
- name: Set message
28+
id: set_message
29+
run: |
30+
str=$(cat <<GHEOF
31+
${{format('👈 {0} reviewed your pull request: {1}', github.event.review.user.login, github.event.pull_request.title)}}
32+
GHEOF)
33+
printf 'message=%s\n' "$(echo $str| jq -R .)" >> $GITHUB_OUTPUT
34+
2735
- name: Notify of review
2836
uses: slackapi/[email protected]
2937
with:
3038
payload: |
3139
{
32-
"message": "👈 ${{github.event.review.user.login}} reviewed your pull request: ${{github.event.pull_request.title}}",
40+
"message": ${{ steps.set_message.outputs.message }},
3341
"user": "${{ secrets[format('slack_email_{0}', github.event.pull_request.user.login)] }}",
3442
"pr_url": "${{ github.event.pull_request.html_url }}"
3543
}

0 commit comments

Comments
 (0)