Skip to content

Commit

Permalink
[MWPW-168268] Correct RCP dates in Slack comms (#3717)
Browse files Browse the repository at this point in the history
  • Loading branch information
overmyheadandbody authored Feb 21, 2025
1 parent 60ccc33 commit b365db2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rcp-notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ const main = async () => {
const slackText = (days) =>
`Reminder RCP starts in ${days} days: from ${start.toUTCString()} to ${end.toUTCString()}. Merges to stage will be disabled beginning ${calculateDateOffset(start, stageOffset).toUTCString()}.`;
if (isWithin24Hours(firstNoticeOffset) && !isShort) {
console.log('Is within 24 hours of 10 days before RCP');
await slackNotification(slackText(10), process.env.MILO_DEV_HOOK);
console.log('Is within 24 hours of 13 days before RCP');
await slackNotification(slackText(13), process.env.MILO_DEV_HOOK);
}

if (isWithin24Hours(lastNoticeOffset) && !isShort) {
console.log('Is within 24 hours of 4 days before RCP');
await slackNotification(slackText(4), process.env.MILO_DEV_HOOK);
console.log('Is within 24 hours of 6 days before RCP');
await slackNotification(slackText(6), process.env.MILO_DEV_HOOK);
}
}

Expand Down

0 comments on commit b365db2

Please sign in to comment.