Request Review Action
Automatically request reviews for pull requests
The Request Review Action automatically assigns reviewers to pull requests, helping ensure that PRs get appropriate review from relevant team members or teams.
Configuration
Usernames of individual reviewers to request
Team slugs to request reviews from
Basic Usage
Examples
Individual Reviewers
Request reviews from specific individuals:
Team Reviews
Request reviews from entire teams:
Special Annotations
Use special annotations for dynamic reviewers:
How It Works
Get Current Reviewers
The action retrieves the list of users and teams already requested as reviewers
Process Special Annotations
It processes any special annotations like @author
Filter Reviewers
It removes any reviewers who have already been requested or can’t review (e.g., the PR author can’t review their own PR)
Request Reviews
If there are new reviewers to request, it sends review requests to them
Practical Use Cases
Component-Based Reviewers
Assign reviewers based on which components are modified:
Security Review for Sensitive Changes
Request security team review for security-related changes:
Documentation Review
Request documentation team review for docs changes:
Random Reviewer Selection
Create a round-robin review system (requires additional setup):
Best Practices
Be mindful of reviewer fatigue; rotating reviewers can help distribute the workload
Team Assignment Tips
When assigning team reviews:
- Team Structure: Team names are in the format
organization/team-slug
- Public Teams: Make sure the teams are visible to the GitHub App
- Manage Expectations: Set clear expectations about which team members should respond
- Review Policies: Consider creating team review assignment policies
Individual Reviewer Tips
When assigning individual reviewers:
- Required vs Optional: Distinguish between required and optional reviewers
- Specialist Reviews: Assign specialists for specific types of changes
- Cross-Training: Occasionally assign reviewers from different teams for knowledge sharing
- Backup Reviewers: Consider assigning backup reviewers for critical changes