GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@devantler devantler commented Jun 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@devantler @claude
feat(rulesets): require the CodeRabbit review status check org-wide
d0c3872
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

coderabbitai Bot commented Jun 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Review Change Stack

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

devantler and others added 2 commits June 28, 2026 01:03
@devantler @claude
refactor(rulesets): group the CodeRabbit gate under require-status-ch…
10a2ae7
…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]>
@devantler @claude
refactor(rulesets): set names/refs for require-status-checks-coderabb…
196987a
…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]>
@devantler
devantler marked this pull request as ready for review June 27, 2026 23:04
coderabbitai[bot]
coderabbitai Bot reviewed Jun 27, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

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.

All reactions
Comment thread deploy/organization-rulesets/require-status-checks-coderabbit-review.yaml Resolved

Uh oh!

There was an error while loading. Please reload this page.

@devantler @claude
fix(rulesets): pin the CodeRabbit required check to the coderabbitai app
df6aa6d
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]>
botantler-1[bot]
botantler-1 Bot approved these changes Jun 27, 2026
View reviewed changes
@botantler-1
botantler-1 Bot enabled auto-merge (squash) June 27, 2026 23:12
@botantler-1
botantler-1 Bot merged commit 95356b8 into main Jun 27, 2026
7 of 8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@devantler devantler mentioned this pull request Jun 27, 2026
revert(rulesets): drop the provider-uncreatable CodeRabbit required-check ruleset #75
Merged
botantler-1 Bot pushed a commit that referenced this pull request Jun 27, 2026
@devantler @claude
revert(rulesets): drop the provider-uncreatable CodeRabbit required-c…
ccf90b8
…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
CodeRabbit prepaid credits exhausted — reviews stopped org-wide #83
Closed
Migrate governance intent from devantler-tech/maintenance into .github (declarative) and retire the maintenance repo #84
Closed
Model org-wide GitHub settings (webCommitSignoffRequired, default permission, 2FA) once the provider supports it #85
Open
fix: repoint the six org required-workflow rulesets off reusable-workflows (blocks its archival) #87
Closed
CodeRabbit Linked Issues check ignores files present in PR diff #93
Closed
This was referenced Jul 13, 2026
Define a default-off Admins team policy #95
Closed
Enforce reviewer gates before bot auto-merge #99
Closed
CodeRabbit posts a failing 'Review rate limit exceeded' commit status org-wide, making PRs UNSTABLE #101
Closed
Roadmap: restrict code authorship to the AI engineer; humans keep observe/promote/issue rights #104
Open
@devantler
devantler deleted the claude/rulesets-require-coderabbit branch July 16, 2026 21:29
This was referenced Jul 17, 2026
Require the CLA gate status check on world-at-ruin #107
Closed
test: guard declarative coverage so deploy/ drift fails CI instead of going unnoticed #113
Closed
@coderabbitai coderabbitai Bot mentioned this pull request Jul 25, 2026
Adopt the GitHub surface unblocked by provider-upjet-github TF 6.13.0 (rulesets, Actions SHA-pinning, collaborators) #121
Closed
9 tasks done
This was referenced Aug 2, 2026
fix(security): the org's signed-commits ruleset is active but enforces nothing #132
Closed
feat(rulesets): require the CLA gate check on world-at-ruin #135
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@botantler-1 botantler-1[bot] botantler-1[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@devantler
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.