feat: draft PR reminders with per-timezone Slack @mentions#24
Open
Ilia wants to merge 4 commits into
Open
Conversation
Notifies each author via Slack @mention about their open draft PRs, grouped by timezone so AEST and IST users each receive reminders at their local 9am and 3pm on Mondays. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Maps all 11 #pactflow-dev members (GitHub login → Slack ID + timezone). Adds GMT cron triggers for Yousaf (Mon 9am/3pm UTC). Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
JP-Ellis
requested changes
Jun 2, 2026
Member
JP-Ellis
left a comment
There was a problem hiding this comment.
A few comments, but I think my main concern is that there are many timezone formats, and it is unclear to me whether they are all working the same. I.e.:
- You might have timezone as offset
+10:00/+11:00 - You might have the timezone as an abbreviation:
AEST/AEDST(though these can be ambiguous, both because one abbreviation can refer to multiple timezones, and multiple abbreviations can refer to the one timezone) - You might have the timezone from IANA:
Australia/Melbourne
I would use the IANA timezone in the cron and for the people association, as that shifts with daylight saving automatically.
Comment on lines
+28
to
+32
| workflow_dispatch: | ||
| inputs: | ||
| timezone_group: | ||
| description: 'Timezone group to notify (e.g. AEST, IST)' | ||
| required: true |
Member
There was a problem hiding this comment.
The timezone_group value should be an enum as opposed to a free input.
Contributor
Author
There was a problem hiding this comment.
Fixed — timezone_group is now type: choice with options: [Australia/Melbourne, Asia/Kolkata, Europe/London].
- Replace UTC-offset crons with IANA timezone: field (DST-aware) - One cron per timezone instead of two (9am only, no 3pm) - Detect active timezone at runtime via local hour check - workflow_dispatch input is now a type: choice enum - Mapping JSON uses IANA strings (Australia/Melbourne, Asia/Kolkata, Europe/London) instead of abbreviations Addresses review feedback from JP-Ellis. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
draft-pr-reminders.yml) that notifies authors of open draft PRs in the pactflow org via Slack @mention every Mondaydraft-pr-slack-mapping.jsonmapping 11 team members (GitHub login → Slack member ID + timezone)How it works
draft:trueopen PRs across the org via GraphQLCron schedule
Adding users / timezones
.github/draft-pr-slack-mapping.jsoncasebranch in the workflowTest plan
workflow_dispatchwithtimezone_group=AEST— verify Slack message appears with correct @mentionsmefellowsmaps correctly if Matt has a draft PR open🤖 Generated with Claude Code