Skip to main content
| Request Changes Workflow keeps CodeRabbit’s review decision synchronized with its actionable feedback. When enabled, CodeRabbit requests changes when a review posts actionable inline comments and approves the pull request after the approval requirements are met.
GitHub pull request merge box showing a changes requested review from coderabbitai[bot] and merging blocked

A GitHub's pull request blocked by CodeRabbit's request-changes review

Enabling the workflow

The setting is disabled by default. Enable it for a repository or organization using either configuration method:
Add reviews.request_changes_workflow to .coderabbit.yaml in your repository or central configuration repository:
.coderabbit.yaml

How it works

1

CodeRabbit reviews a commit

If the review posts actionable inline comments, CodeRabbit submits a request-changes review.
2

You address the feedback

Update the pull request and let CodeRabbit review the new commit.
3

CodeRabbit resolves addressed threads

During the next review, CodeRabbit checks its open threads and resolves those that the changes addressed.
4

CodeRabbit verifies approval requirements

  • The latest commit must have completed a review.
  • All required review threads must be resolved.
  • No Pre-Merge Checks can be failing.
5

CodeRabbit approves the reviewed commit

Immediately before approval, CodeRabbit verifies that the pull request HEAD has not changed.
On GitLab, discussion handling depends on what triggers the approval check. When resolving a discussion triggers the check, CodeRabbit waits until GitLab reports that all blocking discussions are resolved. When a clean CodeRabbit review triggers the check, CodeRabbit checks only discussions that it created.

When approval remains pending

CodeRabbit does not approve automatically when any approval requirement is unmet. Approval remains pending when:
  • The latest review is missing, in progress, failed, or rate-limited.
  • The current pull request HEAD is not among the commits CodeRabbit reviewed.
  • A required review thread is unresolved.
  • A Pre-Merge Check is failing.
  • The pull request HEAD changes while CodeRabbit verifies the approval requirements.
If every changed file is excluded by path filters, CodeRabbit skips the review content but still evaluates the remaining approval requirements and can approve the pull request.

Rate-limited reviews

During a rate-limited run, CodeRabbit may still resolve threads that the new changes addressed. The approval stays pending because the latest commit did not complete a review. Comment @coderabbitai rate limit to check your remaining capacity, then run @coderabbitai review after capacity is restored.

Explicit approval commands

Top-level @coderabbitai resolve and @coderabbitai approve comments are explicit overrides when this workflow is enabled. Both commands resolve CodeRabbit-authored review threads and can submit approval without requiring the latest commit to have a completed review or requiring Pre-Merge Checks to pass. CodeRabbit still verifies that the pull request HEAD has not changed immediately before approval. Run @coderabbitai review first if every approved commit must complete a review.

What’s next

Pre-Merge Checks

Configure the quality gates that CodeRabbit verifies before approval

Review commands

Trigger reviews manually and inspect your remaining review capacity