LOW / CODEBlueprints
engineering

PR Review Reminder Bot

Remind developers about stale pull requests that need review. Checks GitHub for open PRs older than a configurable threshold and sends reminders to Slack.

Beginner~15 minn8nMake.com 826 downloads 1503 views

Setup Instructions

1. In your automation platform, create a Schedule trigger that runs daily at 10 AM (when developers are active). 2. Add a GitHub node (or HTTP Request) to fetch open pull requests from your repository using the GitHub API: GET /repos/{owner}/{repo}/pulls?state=open. 3. Add a Code/Function node to filter PRs that have been open longer than your threshold (e.g., 24 hours) and have no reviews or are awaiting changes. 4. Add an IF node to check if any stale PRs were found — skip the Slack notification if none exist. 5. Add a Slack node that posts to #engineering (or your team channel) with a formatted list of stale PRs including: title, author, age in hours, link, and requested reviewers. 6. Optionally, mention the requested reviewers using their Slack user IDs for direct pings. 7. Test by setting the threshold to 1 hour and verifying the bot catches any recently opened PRs.
Troubleshooting
**GitHub API rate limiting:** Authenticated requests get 5,000/hour. If you have many repos, cache the results or stagger the checks. Use conditional requests (If-Modified-Since header) to reduce API calls. **Slack message too long for many PRs:** Slack messages have a 4,000 character limit for text blocks. If you have 20+ stale PRs, paginate into multiple messages or use a Slack attachment with a summary count and link to a dashboard. **PR age calculation off by timezone:** GitHub returns timestamps in UTC. Ensure your hour calculation converts to UTC before comparing, or use the platform's built-in date difference functions. **Reviewers not being mentioned:** Slack mentions require <@SLACK_USER_ID> format. GitHub usernames do not map automatically — maintain a mapping object in your Function node or use email-based Slack lookups.

Need a custom version?

We can build a tailored automation workflow for your specific needs.

New blueprints weekly

Get notified when we publish new automation workflows.