Skip to content

Make main-ci ruleset enablement idempotent - #1

Merged
kuker24 merged 1 commit into
mainfrom
enable-main-ci-idempotent
Aug 16, 2026
Merged

Make main-ci ruleset enablement idempotent#1
kuker24 merged 1 commit into
mainfrom
enable-main-ci-idempotent

Conversation

@kuker24

@kuker24 kuker24 commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Why

main is already protected by the main-ci ruleset. This change only makes ./scripts/enable-main-protection.sh safe to re-run: GET existing rulesets, then PUT main-ci if present or POST if missing.

Verify

I already ran the local script against the live repo. It updated ruleset 20901169 (main-ci, enforcement active) instead of creating a duplicate.

Out of scope

No installer, vendor, doctor, or VERSION changes. v1.1.1 stays the baseline.

Reconcile an existing main-ci ruleset instead of POSTing a duplicate.
@kuker24
kuker24 merged commit 9252406 into main Aug 16, 2026
1 check passed
@kuker24
kuker24 deleted the enable-main-ci-idempotent branch August 16, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant