Automation Summary
Enforce that CodeRabbit completes its review before Copilot (or any other AI reviewer) is requested or allowed to proceed on pull requests targeting develop and main.
Currently, CodeRabbit is configured via .coderabbit.yaml with auto_review.enabled: true and request_changes_workflow: true, but there is no workflow-level gate that prevents Copilot from being requested before CodeRabbit has posted its review. This allows a PR to receive Copilot suggestions before CodeRabbit's structural and standards checks are available, which defeats the intended review-order policy.
Problem
- CodeRabbit and Copilot can run concurrently or in arbitrary order on PRs
- A contributor can request Copilot review immediately after opening a PR, before CodeRabbit has finished
- There is no status check or required review that enforces CodeRabbit must complete first
- The intent of the review policy (CodeRabbit as first-pass structural reviewer, Copilot for targeted follow-up) is not enforceable without a gate
Proposed Solution
Add a GitHub Actions workflow (or extend the existing reviewer.yml) that:
- On
pull_request opened/synchronised — sets a pending commit status or required check named coderabbit/review that must pass before other reviewers are requested
- Polls or listens for CodeRabbit's review — uses the PR review events API to detect when CodeRabbit (
@coderabbitai) has posted its review and marks the status check as passed
- Optionally blocks Copilot auto-assignment — either via branch protection rules requiring
coderabbit/review to pass, or by not auto-requesting Copilot until CodeRabbit has reviewed
Alternative: Branch Protection Rule
If a dedicated workflow is too complex, a simpler first step is to add coderabbit/review as a required status check in branch protection for develop and main, relying on CodeRabbit's own status reporting.
Steps / Checklist
Acceptance Criteria
Additional Context
Definition of Ready (DoR)
Definition of Done (DoD)
Automation Summary
Enforce that CodeRabbit completes its review before Copilot (or any other AI reviewer) is requested or allowed to proceed on pull requests targeting
developandmain.Currently, CodeRabbit is configured via
.coderabbit.yamlwithauto_review.enabled: trueandrequest_changes_workflow: true, but there is no workflow-level gate that prevents Copilot from being requested before CodeRabbit has posted its review. This allows a PR to receive Copilot suggestions before CodeRabbit's structural and standards checks are available, which defeats the intended review-order policy.Problem
Proposed Solution
Add a GitHub Actions workflow (or extend the existing
reviewer.yml) that:pull_requestopened/synchronised — sets a pending commit status or required check namedcoderabbit/reviewthat must pass before other reviewers are requested@coderabbitai) has posted its review and marks the status check as passedcoderabbit/reviewto pass, or by not auto-requesting Copilot until CodeRabbit has reviewedAlternative: Branch Protection Rule
If a dedicated workflow is too complex, a simpler first step is to add
coderabbit/reviewas a required status check in branch protection fordevelopandmain, relying on CodeRabbit's own status reporting.Steps / Checklist
CONTRIBUTING.md.coderabbit.yamlif any config changes are neededAcceptance Criteria
developandmaincannot have Copilot invoked before CodeRabbit has completed its reviewCONTRIBUTING.mdautomation/orfix/Additional Context
.coderabbit.yaml— CodeRabbit is already wired and active.github/workflows/reviewer.yml— runs the internal reviewer agentDefinition of Ready (DoR)
Definition of Done (DoD)