Request Reviews
Request reviews from specific users or teams.
The request_reviews action lets Mergify request reviews from specified users
or teams. This is useful when you want to ensure specific team members review
certain pull requests.
Who Gets Requested
Section titled Who Gets RequestedMergify never requests a review from the pull request author, even when the
author is named in users. It also skips anyone already involved: a user or
team that has a pending review request, and any user who has approved,
requested changes, or commented in a review on the pull request, even if that
review was later dismissed. As with the
review conditions, only reviewers
with admin, write or maintain permission on the repository count here.
With random_count, those already-involved candidates count toward the
target rather than being replaced. If random_count is 3 and two people from
your lists have already reviewed, Mergify picks one more.
Parameters
Section titled Parametersbot_account#Mergify can impersonate a GitHub user to request a review on a pull request. If no bot_account is set, Mergify will request the review itself.
random_count#Pick random users and teams from the provided lists. When random_count is specified, users and teams can be a dictionary where the key is the login and the value is the weight to use. Weight must be between 1 and 65535 included.
teams#The team names to request reviews from.
users#The usernames to request reviews from.
users_from_teams#The team names to get the list of users to request reviews from.
Examples
Section titled ExamplesRequest a Review for Sensitive Files
Section titled Request a Review for Sensitive FilesAsk the security team to review whenever a pull request changes files under
security/.
pull_request_rules: - name: request a security review conditions: - files ~= ^security/ actions: request_reviews: teams: - securityWas this page helpful?
Thanks for your feedback!