![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'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:- Using configuration file
- Using Web Interface
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.
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.
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