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 — revert(rulesets): drop the provider-uncreatable CodeRabbit required-check ruleset by devantler · Pull Request #75 · devantler-tech/.github

Conversation

@devantler

@devantler devantler commented Jun 27, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Reverts #74 — the merged OrganizationRuleset fails to reconcile on-cluster, and cannot be made to work with the current provider.

Symptom

create failed: async create failed: recovered from panic:
interface conversion: interface {} is nil, not bool

(OrganizationRuleset/github-config/require-status-checks-coderabbit-review, panic loop every ~60s.)

Root cause

terraform-provider-github v6.6.0 (bundled in provider-upjet-github v0.19.1) expands the required_status_checks rule with an unchecked assertion — respository_rules_utils.go:343:

doNotEnforceOnCreate := requiredStatusMap["do_not_enforce_on_create"].(bool)

But v0.19.1's CRD does not expose doNotEnforceOnCreate (verified: absent from the live CRD), so the key is nil at runtime → nil.(bool) panics. The field can't be set from the CR to avoid the nil, v0.19.1 is the latest release, and the same shared code path means RepositoryRuleset would panic too. So no required_status_checks ruleset is provider-creatable today — which is why every existing status-check ruleset here is UI-created + Observe-imported.

The strict server-side dry-run that validated #74 only checks the CRD schema, never the provider/GitHub API, so it could not catch a runtime panic in the Terraform layer.

Impact / safety

The CR never created a GitHub ruleset (external-name is null), so nothing is orphaned and no merges are or were gated — the CodeRabbit check is not currently enforced. This revert restores a clean, green deploy/ reconcile.

Path forward (the CodeRabbit gate still needs a home)

Because the provider can't create required-status-check rulesets, the requirement must be UI-created + Observe-imported, exactly like the existing "Require status checks to pass" ruleset. Recommended: add the CodeRabbit context (pinned to app 347564) to that existing ruleset in the UI — it's already Observe-imported here, so no new resource is needed and nothing would drift. I can also file the upstream provider bug. README now documents this limitation so it isn't retried.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added management for release tag protection as a provider-managed organization ruleset.
  • Bug Fixes

    • Removed the previously documented status-check ruleset from provider-managed rollout.
    • Clarified that required status check rulesets must be created in the UI and then imported for observation only.
  • Documentation

    • Updated the organization rulesets guide to reflect the current managed ruleset set and the correct setup guidance.

Sorry, something went wrong.

Uh oh!

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

All reactions
@devantler @claude
revert(rulesets): drop the provider-uncreatable CodeRabbit required-c…
bf6cfe9
…heck ruleset

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]>
@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: 89f4efe5-6136-4f64-a6f2-b60a24972acf

📥 Commits

Reviewing files that changed from the base of the PR and between 95356b8 and bf6cfe9.

📒 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

📝 Walkthrough

Walkthrough

Removes the require-status-checks-coderabbit-review.yaml OrganizationRuleset manifest and its kustomization entry, leaving protect-release-tags.yaml as the sole provider-managed (Create) ruleset. The README is updated to reflect this and adds a warning that required_status_checks org rulesets cannot be provider-created due to a panic in terraform-provider-github v6.6.0.

Changes

Revert CodeRabbit required-status-checks org ruleset

Layer / File(s) Summary
Remove manifest and update kustomization
deploy/organization-rulesets/require-status-checks-coderabbit-review.yaml, deploy/organization-rulesets/kustomization.yaml, deploy/organization-rulesets/protect-release-tags.yaml
Deletes the 62-line OrganizationRuleset manifest, removes it from the kustomization resources list, and updates the header comment from "tag + branch (2)" to "tag only (1)". The protect-release-tags.yaml comment is updated to note it is now the sole net-new managed ruleset.
README table and provider limitation warning
deploy/organization-rulesets/README.md
Updates the "What is managed here" table to list protect-release-tags.yaml as the sole Create-managed ruleset. Adds a warning block documenting that required_status_checks org rulesets cause a provider panic on create due to a missing doNotEnforceOnCreate field, mandating UI-created + Observe-imported for those rulesets.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

  • devantler-tech/.github#74: Directly reverts the addition of require-status-checks-coderabbit-review.yaml and its kustomization/README entries that this PR cleans up.

Poem

🐇 Hippity hop, the ruleset must go,
The provider it panicked — oh no, oh no!
One tag to protect, that's all we need,
The CodeRabbit check? Import with speed.
A warning now docs what the provider can't do,
Clean kustomization, fresh README too! ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/rulesets-revert-coderabbit-create-panic

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.

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:47
@botantler-1
botantler-1 Bot merged commit ccf90b8 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
fix(ci): release revert commits so reverts reach the cluster #76
Merged
botantler-1 Bot pushed a commit that referenced this pull request Jun 27, 2026
@devantler @claude
fix(ci): release revert commits so reverts reach the cluster (#76)
92b8ad5
The revert #75 (dropping the panic-on-create CodeRabbit ruleset) merged to
main but semantic-release reported "no release": the default release rules
cover feat/fix/perf but not the `revert` type, so the deploy/ change was never
published — the github-config OCI artifact stayed at v1.8.0 (which still
contains the broken ruleset) and the failing OrganizationRuleset CR was never
pruned.

Add a commit-analyzer releaseRule mapping `revert` -> patch so revert commits
cut a release (and reach the cluster). This `fix:` commit itself triggers the
patch that republishes current main — with #75's removal already applied.

Co-authored-by: Claude Opus 4.8 <[email protected]>
This was referenced Jul 8, 2026
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
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
@coderabbitai coderabbitai Bot mentioned this pull request Jul 16, 2026
Roadmap: restrict code authorship to the AI engineer; humans keep observe/promote/issue rights #104
Open
6 tasks
@devantler
devantler deleted the claude/rulesets-revert-coderabbit-create-panic branch July 16, 2026 21:29
@coderabbitai coderabbitai Bot mentioned this pull request Jul 17, 2026
Require the CLA gate status check on world-at-ruin #107
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

@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.