feat: scheduled PR review digest to Slack#21
Merged
Conversation
Posts a digest of unreviewed open PRs across the pactflow org to Slack twice daily (8:30am and 2:30pm AEST), with weekend-aware staleness filtering. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
JP-Ellis
requested changes
Jun 1, 2026
Member
JP-Ellis
left a comment
There was a problem hiding this comment.
Just the one change (there's a standard GitHub action to create a short-lived token)
- Replace two gh search prs REST calls with a single GraphQL query - Use __typename == "User" for reliable bot detection (catches renovate-bot, dependabot, github-actions without fragile login pattern matching) - Filter reviewRequests.totalCount == 0 to exclude PRs already assigned a reviewer - Remove age cutoff — surface all qualifying PRs regardless of age - Replace GH_PAT with short-lived GitHub App token (actions/create-github-app-token) Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
JP-Ellis
approved these changes
Jun 1, 2026
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
Adds a scheduled GitHub Actions workflow that posts a digest of PRs awaiting a reviewer across the `pactflow` org to Slack twice daily.
Rules
A PR is included in the digest if all of the following are true:
Schedule
Silent if no PRs qualify — no noise on clean days.
Secrets required
A short-lived GitHub App token is generated at runtime via `actions/create-github-app-token@v1` — no long-lived PAT required.
Test plan
🤖 Generated with Claude Code