![GitHub pull request merge box showing a changes requested review from coderabbitai[bot] and merging blocked](https://mintcdn.com/coderabbit/N5RZvrAPwAPwn-SE/assets/images/changes-requested.png?fit=max&auto=format&n=N5RZvrAPwAPwn-SE&q=85&s=130eae8ae2948a12a11e65ff2768e94a)
A GitHub pull request blocked by CodeRabbit's request-changes review
How it works
1
CodeRabbit reviews a commit
If the review finds a blocking issue, CodeRabbit requests changes on platforms that support that review decision.
2
You address the feedback
Push changes to the pull request and let CodeRabbit review the new commit.
3
CodeRabbit resolves addressed threads
On a new push, CodeRabbit can check its open threads and resolve those whose findings the changes address. See What happens to review comments after a push.
4
CodeRabbit checks the approval requirements
CodeRabbit approves only when every approval requirement is met.
5
CodeRabbit approves the reviewed commit
Immediately before approving, CodeRabbit checks that the pull request HEAD has not changed.
Approval requirements
CodeRabbit approves a pull request only when all of these are true:- The latest commit has a completed CodeRabbit review, unless you let CodeRabbit approve skipped reviews.
- All required review threads are resolved.
- No Pre-Merge Check is failing.
- The pull request is within any configured risk limits.
- No matching team or path override disables approval.
Turn on Automatic Approvals
Automatic Approvals is off by default. Turn it on for a repository or an organization:- Configuration file
- Web interface
Add
reviews.auto_approvals.enabled to .coderabbit.yaml in your repository or central configuration repository:.coderabbit.yaml
Set the minimum blocking severity
With Automatic Approvals enabled, usemin_blocking_severity to choose which findings cause CodeRabbit to request changes or withhold approval. Leave the setting unset to keep the default behavior, in which actionable findings block automatic approval regardless of severity.
majorblocks on Major and Critical findings.criticalblocks on Critical findings and keeps Major findings advisory.
- V2 YAML
- V3 YAML
- Web interface
.coderabbit.yaml
@coderabbitai/config version 5.1.0 or later for type support.
The other approval requirements still apply. Your Git provider can also require you to resolve advisory discussions before merging.
Approve skipped reviews
By default, a pull request stays unapproved while CodeRabbit intentionally skips its review, for example because the pull request is a draft, reviews are paused, the author is ignored, or the pull request has too many files or diffs that are too large to review. Turn on skipped-review approval to let CodeRabbit approve in these cases:- Configuration file
- Web interface
Set
reviews.auto_approvals.approve_on_skipped_review to true:.coderabbit.yaml
Why CodeRabbit hasnât approved
The review summary explains why approval is pending or withheld:
If a blocking finding cannot be published, the commit status fails when
reviews.fail_commit_status (V2) or reviews.behavior.status.fail_on_error (V3) is enabled. Otherwise, the success status describes the incomplete review.
During a rate-limited run, CodeRabbit may still resolve threads that the new changes addressed, but the approval stays pending because the latest commit has no completed review.
Approve or resolve on demand
Post@coderabbitai approve or @coderabbitai resolve as a top-level pull request comment to skip the wait. Both commands resolve CodeRabbitâs review threads. With Automatic Approvals turned on, both can also approve the pull request without a completed review of the latest commit and without passing Pre-Merge Checks. A resolve command posted as a thread reply closes that discussion only.
The commands do not bypass risk limits or disabled overrides. The risk assessment comes from a completed review, so when a limit is set, the latest commit needs a completed review before either command can approve. CodeRabbit also checks, immediately before approving, that the pull request HEAD has not changed. If every approved commit must have a completed review, run @coderabbitai review first.
Limit author approval commands
By default, pull request authors can use both top-level commands on their own pull requests. Setreviews.auto_approvals.allow_author_approval to false to prevent this:
.coderabbit.yaml
Turn off Automatic Approvals
Setreviews.auto_approvals.enabled to false, or turn off Automatic approvals in the web interface. CodeRabbit then stops requesting changes and approving on new reviews.
Turning the feature off does not remove reviews that CodeRabbit already submitted. On open pull requests, dismiss CodeRabbitâs approvals that should no longer count toward your merge rules, and any request-changes reviews that still block merging.
Configuration
Approval risk limits explains the risk limits and overrides for teams and paths.Request changes for blocking findings. Automatically approve when required threads are resolved, the latest commit is reviewed, pre-merge checks pass, and configured risk limits are satisfied. In GitLab, required discussions must be resolved.
Set the lowest finding severity that can block automatic approval. Lower-severity findings remain visible as advisory feedback. Enable automatic approvals to use this setting. Leave it unset to keep the default blocking behavior. Required pre-merge checks, provider discussion rules, and approval risk limits still apply. In Perforce, only published inline findings count toward this threshold. One of:
major, criticalWhen automatic approvals are enabled, allow approval when the entire review is intentionally skipped, such as for a draft pull request or a file limit. Errors and cancelled reviews are excluded. Existing findings, pre-merge checks and configured risk limits still apply.
Highest inclusive merge risk that permits approval. Omitted limits can be inherited; merge risk is unrestricted only when no configuration source sets a limit. A configured limit requires an assessment covering the current commit. One of:
minimal, low, moderate, high, criticalAllow pull request authors to use top-level @coderabbitai approve and @coderabbitai resolve commands on their own pull requests. When disabled, another reviewer must run them. The pull requestâs branch configuration cannot re-enable this permission. Commands still honor approval risk limits. This does not require human review or change automatic approvals after normal review requirements pass.
Highest inclusive security architecture risk that permits approval. Security risk assessments require the Advanced plan or above. Omitted limits can be inherited; security risk is unrestricted only when no configuration source sets a limit. This is separate from Security finding severity. A configured limit requires an assessment covering the current commit. One of:
minimal, low, moderate, high, criticalSet to false to withhold approval for matching pull requests, regardless of risk. Omit to use the global setting. Any matching disabled override wins. Review comments and requests for changes continue normally; overrides cannot turn on a globally disabled workflow.
Apply this override when the pull request author belongs to any listed GitHub team. Use organization/team-slug.
Apply this override when any changed file matches these repository-relative globs. Uses the same glob syntax as
path_filters, including ! exclusions. Renames match both old and new paths. When teams and paths are set, both must match. Omit to match all paths.Override the global merge-risk limit for matching pull requests. Omit to inherit the global limit. One of:
minimal, low, moderate, high, criticalOverride the global security-risk limit for matching pull requests. Omit to inherit the global limit. Security risk assessments require the Advanced plan or above. One of:
minimal, low, moderate, high, criticalLegacy configuration key
CodeRabbit also readsreviews.request_changes_workflow and treats it as reviews.auto_approvals.enabled. Use only one of the two keys. If a configuration sets both to different values, CodeRabbit turns off Automatic Approvals for that configuration and reports a configuration error.
Whatâs next
Approval risk limits
Keep higher-risk pull requests for human approval while CodeRabbit approves routine ones.
Choose an approval policy
Combine CodeRabbit approvals with human reviews, GitHub branch rules, and Triage merges.
Pre-Merge Checks
Configure the quality gates that CodeRabbit verifies before it approves.