Skip to content

Commit

Permalink
[MWPW-156163] Send additional Slack notifications for high impact PRs (
Browse files Browse the repository at this point in the history
  • Loading branch information
overmyheadandbody authored Aug 9, 2024
1 parent 5d19240 commit 7b9c7cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/high-impact-alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/high-impact-alert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7b9c7cf

Please sign in to comment.