Skip to content

Commit

Permalink
Ensure usernames are mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
trallard committed Jul 9, 2024
1 parent 20fea75 commit 6023674
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/notify-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: "Extract PR details"
id: pr_details
run: |
echo "REVIEWERS=$(jq -r '.pull_request.requested_reviewers | map(.login) | join(",")' $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
echo "REVIEWERS=$(jq -r '.pull_request.requested_reviewers | map(.login) | join(", @")' $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
echo "PR_TITLE=$(jq -r '.pull_request.title' $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
echo "PR_URL=$(jq -r '.pull_request.html_url' $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
env:
Expand All @@ -24,11 +24,11 @@ jobs:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_CHANNEL: trallard-test-channel
SLACK_COLOR: "#7868E6"
SLACK_TITLE: "New PR assigned for review"
SLACK_TITLE: "Code Review Requested"
SLACK_MESSAGE: |
${{ env.REVIEWERS }} has been assiigned as a reviewer for the following PR:
*PR Title*: ${{ env.PR_TITLE }}
*PR URL*: ${{ env.PR_URL }}
*Reviewers*: ${{ env.REVIEWERS }}
SLACK_USERNAME: "GH-bot"
SLACK_ICON_EMOJI: ":bell:"
SLACK_LINK_NAMES: true
Expand Down

0 comments on commit 6023674

Please sign in to comment.