From 7b9c7cfc9cb80e9be9f044f66ae6e891d185d4fa Mon Sep 17 00:00:00 2001 From: Rares Munteanu Date: Fri, 9 Aug 2024 12:00:44 +0200 Subject: [PATCH] [MWPW-156163] Send additional Slack notifications for high impact PRs (#2713) --- .github/workflows/high-impact-alert.js | 5 ++++- .github/workflows/high-impact-alert.yml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/high-impact-alert.js b/.github/workflows/high-impact-alert.js index 9a5a5833fb..5858af61b5 100644 --- a/.github/workflows/high-impact-alert.js +++ b/.github/workflows/high-impact-alert.js @@ -13,9 +13,12 @@ const main = async (params) => { } const { html_url, number, title } = context.payload.pull_request; - console.log('High impact label detected, sending Slack notification'); + console.log('High impact label detected, sending Slack notifications'); slackNotification(`:alert: High Impact PR has been opened: <${html_url}|#${number}: ${title}>.` + ` Please prioritize testing the proposed changes.`, process.env.SLACK_HIGH_IMPACT_PR_WEBHOOK); + slackNotification(`:alert: High Impact PR has been opened: <${html_url}|#${number}: ${title}>.` + + ` Please review the PR details promptly and raise any concerns or questions.`, + process.env.SLACK_MILO_UPDATES_WEBHOOK); } catch (error) { console.error(error); } diff --git a/.github/workflows/high-impact-alert.yml b/.github/workflows/high-impact-alert.yml index 9fa01dacc2..3c3ea56f2d 100644 --- a/.github/workflows/high-impact-alert.yml +++ b/.github/workflows/high-impact-alert.yml @@ -7,6 +7,7 @@ on: env: SLACK_HIGH_IMPACT_PR_WEBHOOK: ${{ secrets.SLACK_HIGH_IMPACT_PR_WEBHOOK }} + SLACK_MILO_UPDATES_WEBHOOK: ${{ secrets.SLACK_MILO_UPDATES_WEBHOOK }} jobs: send_alert: