GeezerVison is showing github.com — feat(rulesets): require the CodeRabbit review status check org-wide by devantler · Pull Request #74 · devantler-tech/.github
Conversation
devantler
commented
Jun 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
What
Adds a net-new, managed OrganizationRuleset — deploy/organization-rulesets/require-status-checks-coderabbit-review.yaml (ruleset name "Require status checks to pass - CodeRabbit") — that requires the CodeRabbit status check on the default branch of every repo (~DEFAULT_BRANCH on ~ALL). A PR can no longer merge until CodeRabbit has published its review.
Part of #52 (model org-level rulesets in deploy/), under epic #56.
Why this shape
- Net-new + managed (Create), not a promotion of the Observe-only
require-status-checks import. Promoting an org-ruleset import past Observe is a lossy round-trip — the live require-status-checks resource reads back status.atProvider.rules: null, so there's nothing to backfill from, and provider v0.19.1 has no field for that ruleset's live do_not_enforce_on_create: true, so promoting it would silently drop it. A dedicated ruleset sidesteps that and matches the org's one-ruleset-per-concern layout (as protect-release-tags.yaml did). The <check>-<purpose> filename + name group it with the status-checks concern.
- Pinned to the CodeRabbit app —
requiredCheck.integrationId: 347564 (the coderabbitai app id, verified via gh api /apps/coderabbitai) so a spoofed CodeRabbit status from another source can't satisfy the gate. (Addresses the CodeRabbit review finding.)
strictRequiredStatusChecksPolicy: false — mirrors the sibling "Require status checks to pass" ruleset.
bypassActors: OrganizationAdmin/always (actorId 0) — escape hatch so an org-wide hard gate can't block every merge during a CodeRabbit outage. Drop the block for a no-bypass gate.
Validation
kubectl kustomize deploy/ builds clean (the CI required check).
- Strict server-side dry-run against the live CRD accepts the resource incl.
integrationId (not pruned); persists nothing.
Rollout
Merging auto-cuts a release → cd.yaml publishes the signed deploy/ OCI artifact → the platform github-config tenant reconciles → Crossplane creates the ruleset live. No manual cluster step.
⚠️ Operational heads-up
This is a hard merge gate: once active, any PR whose head commit has no CodeRabbit status will be blocked (org-admin bypass aside). CodeRabbit was just enabled, so please confirm it posts the CodeRabbit status on all PRs that need to merge — in particular bot PRs (dependabot/renovate), since rulesets can't condition on PR author and those bots aren't admins, so if CodeRabbit doesn't review them their auto-merge would stall. If needed, configure CodeRabbit (.coderabbit.yaml) to review/stamp bot PRs before promoting this out of draft.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add a net-new, managed OrganizationRuleset that requires the `CodeRabbit`
status check on the default branch of every repo, so a PR cannot merge
until CodeRabbit has published its review.
Net-new + managed (Create) like protect-release-tags.yaml, rather than
promoting the Observe-only require-status-checks import — the provider's
round-trip on org rulesets is lossy (its observed rules read back null) and
v0.19.1 can't express that ruleset's do_not_enforce_on_create, so promoting
it would risk wiping live rules. A dedicated ruleset is also consistent with
the org's one-ruleset-per-concern layout.
Validated: `kubectl kustomize deploy/` builds clean, and a strict
server-side dry-run against the live CRD accepts the resource.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
coderabbitai
Bot
commented
Jun 27, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Caution
Review failed
The pull request is closed.
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 390a6cb9-81e5-4cd7-9876-5418ba69a33d
📥 Commits
Reviewing files that changed from the base of the PR and between 196987a and df6aa6d.
📒 Files selected for processing (1)
deploy/organization-rulesets/require-status-checks-coderabbit-review.yaml
📝 Walkthrough
Walkthrough
A new Crossplane OrganizationRuleset manifest is added to require the CodeRabbit status check on default branches for all repositories, with an OrganizationAdmin bypass. The manifest is added to kustomization.yaml and documented in the README.
CodeRabbit Required Status Check Ruleset
| Layer / File(s) |
Summary |
New OrganizationRuleset manifest deploy/organization-rulesets/require-status-checks-coderabbit-review.yaml, deploy/organization-rulesets/protect-release-tags.yaml |
Defines require-status-checks-coderabbit-review with CodeRabbit status check enforcement on ~DEFAULT_BRANCH for ~ALL repos, Crossplane Create/Update/LateInitialize policy, and OrganizationAdmin bypass (actorId: 0). Rewords the protect-release-tags.yaml header comment. |
Kustomization wiring and README docs deploy/organization-rulesets/kustomization.yaml, deploy/organization-rulesets/README.md |
Adds require-status-checks-coderabbit-review.yaml to the resources list, updates the comment to reflect two net-new managed rulesets, and adds a table row to the README. |
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~5 minutes
Poem
🐇 Hop hop, a new check stands guard tonight,
CodeRabbit's stamp keeps merges bright.
Default branches hum, admins still may pass,
A tidy little ruleset—bunny-approved at last.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name |
Status |
Explanation |
| Description Check |
✅ Passed |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
✅ Passed |
The title clearly and concisely captures the main change: adding an org-wide ruleset that requires the CodeRabbit review status check. |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| Linked Issues check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
✅ Passed |
Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Commit unit tests in branch
claude/rulesets-require-coderabbit
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ecks
Rename require-coderabbit-review.yaml -> require-status-checks-coderabbit-review.yaml
(<check>-<purpose>) and set the ruleset name to "Require status checks to pass -
CodeRabbit", grouping it with the status-checks concern and mirroring the existing
"Require workflows to pass before merging - <variant>" naming. Kept as a separate
net-new managed ruleset rather than folding into the Observe-only require-status-checks
import, whose promotion would be a lossy round-trip (atProvider.rules is null and
v0.19.1 can't express its do_not_enforce_on_create).
Co-Authored-By: Claude Opus 4.8 <[email protected]>
…it-review
Complete the rename: update the ruleset's metadata.name and display name to
"Require status checks to pass - CodeRabbit", the header rationale, and the
kustomization/README/protect-release-tags references to the new filename.
(The prior commit moved only the file path; squash-merge collapses both.)
Co-Authored-By: Claude Opus 4.8 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@deploy/organization-rulesets/require-status-checks-coderabbit-review.yaml`:
- Around line 25-26: The required status check is only matching the CodeRabbit
context, so it can be satisfied by a spoofed status from another source; update
the ruleset in the requiredCheck block to pin it to the CodeRabbit GitHub App by
adding integrationId: 347564. Use the existing requiredCheck entry and the
CodeRabbit context in require-status-checks-coderabbit-review.yaml so only the
coderabbitai app can pass this gate.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 334bcfc5-9737-4713-b1a0-a22ac2220ea2
📥 Commits
Reviewing files that changed from the base of the PR and between 12803dc and 196987a.
📒 Files selected for processing (4)
deploy/organization-rulesets/README.md
deploy/organization-rulesets/kustomization.yaml
deploy/organization-rulesets/protect-release-tags.yaml
deploy/organization-rulesets/require-status-checks-coderabbit-review.yaml
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Add integrationId 347564 (the coderabbitai GitHub App, verified via
`gh api /apps/coderabbitai`) to the requiredCheck so only that app's
`CodeRabbit` status can satisfy the gate — a spoofed status of the same
context from another source/app no longer counts. Addresses the CodeRabbit
review finding on PR #74.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
botantler-1 Bot
pushed a commit
that referenced
this pull request
Jun 27, 2026
…heck ruleset (#75)
Reverts #74. The merged OrganizationRuleset failed to reconcile on-cluster:
create failed: async create failed: recovered from panic:
interface conversion: interface {} is nil, not bool
Root cause: terraform-provider-github v6.6.0 (bundled in provider-upjet-github
v0.19.1) expands required_status_checks via
`requiredStatusMap["do_not_enforce_on_create"].(bool)`
(respository_rules_utils.go:343), but v0.19.1's CRD does not expose
`doNotEnforceOnCreate`, so the key is nil at runtime → nil.(bool) panics. The
field can't be set from the CR to avoid it, and v0.19.1 is the latest release,
so no `required_status_checks` ruleset is provider-creatable today. The strict
server dry-run that validated #74 only checks the CRD schema, never the
provider/GitHub API, so it could not catch this.
The CR never created a GitHub ruleset (external-name is null), so nothing is
orphaned and no merges are gated. README documents the limitation; the
CodeRabbit gate must stay UI-created + Observe-imported (like the existing
"Require status checks to pass") until the provider is fixed.
Co-authored-by: Claude Opus 4.8 <[email protected]>
This was referenced Jul 4, 2026
This was referenced Jul 13, 2026
This was referenced Jul 17, 2026
This was referenced Aug 2, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|