Is it possible to disable automatic review requests from required team reviewer rulesets? #213934
Replies: 4 comments 1 reply
|
Currently, when a branch ruleset requires approval from specific teams, GitHub enforces review acquisition by automatically generating review requests to that team upon PR opening, mirroring CODEOWNERS behavior. While rulesets do not currently expose an isolated toggle for "Require review on merge without requesting on open," here are the two standard ways to eliminate notification noise across your teams: 1. Configure Team "Code Review Assignment" (Recommended)You can prevent GitHub from notifying and tagging every member of the team:
Result: Instead of sending notifications to all 20+ members of the team on every PR, GitHub silently routes the review request strictly to 1 designated person on rotation. 2. Leverage Draft Pull Requests
3. Alternative: Custom GitHub Actions Merge GateIf your workflow requires that team review only be applied on-demand rather than on every PR:
If configuring team-level Code Review Assignment helps eliminate your notification noise, please consider marking this as the accepted answer. |
|
You are right, there is no built in way to do that. A ruleset makes the whole team required, and review assignment only picks a few people from the team, not everyone. So split the two jobs apart.
|
|
I think the workflow suggestion above drops part of your requirement. If Team A is removed from the ruleset, nothing requires a Team A approval anymore. Requiring Team B means a Team A member outside B can't unblock a PR. And requesting Team A through the API pings all of A, which is what you wanted to avoid. You can get what you described by splitting "who is requested" from "who can approve": Ruleset: enable Require a pull request before merging with 1 required approval. Leave Require review from Code Owners off. Result: Team B is requested automatically, any Team A member can approve and satisfy the rule, and nobody else gets notified. The caveat is that "approval from Team A" is enforced through repo permissions rather than a named-team rule. If other people or teams also have write access, their approvals would count too. In that case the Actions check is the only strict option. Persionally I'd double-check this on a test repo first, since ruleset behavior has been changing lately. |
|
Based on the current GitHub behavior, there does not appear to be a dedicated option to disable automatic review requests while keeping required team approvals enforced. A possible workaround is to configure the team's Code Review settings:
This can reduce notification noise, although it does not completely disable automatic review requests. Ideally, GitHub should introduce a separate setting to require team approval before merging without automatically requesting a review whenever a pull request is opened. This would give repository administrators more control over their review workflows. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Other
Body
This feature was released a while ago, but it still seems to auto request reviews in the same way that CODEOWNERS does. Is there any way to disable this to reduce noise?
https://github.blog/changelog/2025-11-03-required-review-by-specific-teams-now-available-in-rulesets/
All reactions