Whitelist Teams for reviewer assignment
Last updated
Last updated
When onboarding a large org, it may be preferred to test out reviewer assignment for a select number of pull requests. There are a couple of ways to do selective reviewer assignment.
To enable FlexReview reviewer assignment for a given GitHub team, go to Teams section in Dashboard, and select the desired team in the dropdown. For this view, click "Enable FlexReview Team".
Once enabled, you should be able to navigate to the Team Config and ensure that "Expert Review" is selected for in the Review Assignment section.
It may be desired to only assign reviews for the pull requests that are authored by specific users or specific teams. This can be configured at the repository level.
Go to Repositories > FlexReview Status > Configure for the repository that you want to enable this for.
Go to "Author Allowlist". Here you can specify either a user or a team (one per-line) that would be whitelisted for reviewer assignments. Syntax is @username
for users and @org/team
for teams. By default all authors are part of the allowlist, this is represented by a special marker *
.
Please note that these whitelists act as AND-gates, that means a pull request will be assigned a reviewer when it satisfies bot the authors and the reviewers whitelists.