Repository navigation
chore: CodeRabbit approves or requests changes - #33
Conversation
Turn on CodeRabbit's request_changes_workflow, so each review ends with a verdict instead of a plain comment: request changes while it has actionable comments, approve once they are resolved and no pre-merge check is in an error state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
romchornyi-pitcrew
left a comment
There was a problem hiding this comment.
✅ no blockers · no majors · 5 non-blocking recommendations — reviewed at d5a1f26e1a
| Level | Verdict | |
|---|---|---|
| 1 · Idea | ✅ valid | Shows CodeRabbit's verdict as approve / request changes rather than a plain comment |
| 2 · Architecture | ✅ right layer | Repo-level CodeRabbit config |
| 3 · Completeness | ✅ complete | One setting, no other consumers: no workflow listens for review events |
| 4 · Code | ✅ clean | The key works today, but it is a deprecated alias (recommendation 1) |
5 non-blocking recommendations
- Use the supported key — — in the linked schema (
Line 10 in d5a1f26
schema.v2.json),reviews.request_changes_workflowis"deprecated": true, "x-undocumented": true, described as a "Legacy alias for reviews.auto_approvals.enabled".reviews.auto_approvals.enabled: truesets the same thing through the current API. When the alias goes, this setting would be ignored with no sign of why. (verified against the schema) - The comment describes the approval rule too broadly — — the schema says CodeRabbit requests changes for blocking findings, not for every actionable comment. It approves only when required threads are resolved, the latest commit is reviewed, pre-merge checks pass and any configured risk limits hold. Someone reading the comment would expect an approval as soon as threads are resolved. (verified against the schema)
Lines 7 to 9 in d5a1f26
- Auto-review does not run on this repo — the
CodeRabbitcheck on this PR reads "Review skipped: manual review required for this OSS repository", and CodeRabbit has not reviewed #33. The verdict will appear only on reviews someone triggers by hand, and the test plan ("CodeRabbit's own review of this PR") cannot run until then. Worth noting in the description. (verified from the check) - Author self-approval —
auto_approvals.allow_author_approvaldefaults totrue, so an author can post@coderabbitai resolveand then@coderabbitai approveon their own PR and get the "approved" badge without addressing the findings. If the badge is meant to sit next to the human reviewers' verdicts,allow_author_approval: falsekeeps it honest. It gates nothing:coderabbitai[bot]has no write permission, so the approval does not count toward the ruleset. - Icon-import PRs — —
Lines 20 to 34 in d5a1f26
*.xcassetsis filtered out andIcon_DashUI.swiftis told not to comment on individual cases. Icon imports will therefore usually get "approved" on content CodeRabbit barely saw. Anauto_approvals.overridesentry withenabled: falsefor those paths would avoid a misleading badge. (not verified)
Review details
Tier: trivial (one config key). Levels 1–3 one line each. Level 4 used the general lane (/code-review high), which checked the repo ruleset and CodeRabbit's collaborator permission. The verifier checked the schema entry for both keys and the CodeRabbit check status. Dropped:
- what would happen if CodeRabbit were ever given write access;
- approval of PRs into
feat/*branches.
Both depend on settings outside this PR and are speculative today. Also dropped a stale-approval point that the ruleset's dismiss_stale_reviews_on_push: false makes true of every reviewer, not only CodeRabbit.
🤖 Reviewed with Claude Code
Issue being fixed or feature implemented
CodeRabbit finishes every review as a plain comment, so its verdict is not visible next to the other reviewers'. Roman wants it to approve or request changes, like a human reviewer.
What was done?
Set
reviews.request_changes_workflow: truein.coderabbit.yaml, with a comment explaining it:CodeRabbit is a GitHub App without write access to the repo, so its approval does not count toward the
masterruleset's required approval, and its request for changes does not block a merge. It only shows its verdict.How Has This Been Tested?
reviews.request_changes_workflowreads astrue.https://coderabbit.ai/integrations/schema.v2.json, linked at the top of the file).Breaking Changes
None.
Checklist:
🤖 Generated with Claude Code