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
1
Get Current Reviewers
The action retrieves the list of users and teams already requested as reviewers
2
Process Special Annotations
It processes any special annotations like
@author
3
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)
4
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
Assign reviewers based on code ownership or expertise
Don’t overwhelm individuals with too many review requests
Balance team and individual reviewer assignments
Consider workload and timezone differences
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