Skip to content

Commit f74c501

Browse files
authored
Add Slack notification for potential regression issues (#6865)
1 parent 7779d25 commit f74c501

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/issue-regression-labeler.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,16 @@ jobs:
3131
else
3232
gh issue edit ${{ github.event.issue.number }} --remove-label "potential-regression" -R ${{ github.repository }}
3333
fi
34+
- name: Notify Slack
35+
if: steps.check_regression.outputs.is_regression == 'true' && github.event.action == 'opened'
36+
run: |
37+
curl -sfS -X POST "$SLACK_WEBHOOK_URL" \
38+
-H 'Content-type: application/json' \
39+
--data "$(jq -n \
40+
--arg text "🚨 Potential regression reported: <$ISSUE_URL|#$ISSUE_NUM: $ISSUE_TITLE>" \
41+
'{text: $text}')"
42+
env:
43+
SLACK_WEBHOOK_URL: ${{ secrets.CI_SLACK_WEBHOOK_URL }}
44+
ISSUE_URL: ${{ github.event.issue.html_url }}
45+
ISSUE_NUM: ${{ github.event.issue.number }}
46+
ISSUE_TITLE: ${{ github.event.issue.title }}

0 commit comments

Comments
 (0)