We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b68913a commit 6136f34Copy full SHA for 6136f34
.github/workflows/copilot-review-notify.yml
@@ -26,4 +26,11 @@ jobs:
26
issue_number: number,
27
body: `Automated: GitHub Copilot has submitted a review for ${url}.`
28
});
29
-
+ - name: Optional Slack notify
30
+ if: ${{ secrets.SLACK_WEBHOOK_URL != '' }}
31
+ env:
32
+ SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
33
+ run: |
34
+ pr_url="${{ github.event.pull_request.html_url }}"
35
+ payload=$(jq -n --arg text "Copilot reviewed $pr_url" '{text: $text}')
36
+ curl -X POST -H 'Content-type: application/json' --data "$payload" "$SLACK_WEBHOOK_URL"
0 commit comments