feat(cycle): org-settings reconcile cycle (#5)#22
Merged
Conversation
Reconciles org-level settings via GET/PATCH /orgs/{org}: default repo
permission, member repo-creation privileges, public metadata, and the
surfaced 2FA flag. PATCH is partial, so selective-by-omission holds by
sending only declared fields (no full-replacement RMW needed).
Registered in the cycle registry and exported from index. Action bundle
rebuilt.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #5.
Adds the org-settings reconcile cycle — the second concrete
Cycleafter the branch-protection template, and the first of the five npm-publish-gate cycles (#5–#9 per the roadmap epic #2).What it does
Reconciles organization-level settings:
default_repository_permissionblog)API:
GET /orgs/{org}(live) +PATCH /orgs/{org}(apply).Design notes
PATCH /orgs/{org}is a partial update — selective-by-omission is honoured simply by sending only declared keys, soapplydoes not re-fetch live state.requireTwoFactorAuthenticationis surfaced for drift reporting and forwarded when declared, but GitHub treats it as read-only on most plans (ignored, not errored). Hardened security-feature enforcement is the remit of cycle: security feature enforcement #13.OrgSettings), live shape (LiveOrgSettings), anddiffSettingsalready existed in the harness — this PR adds the cycle (fetchLive/buildDesired/apply), registration, and tests.Verification
npx tsc --noEmitcleannpm testgreen (252 tests; +21 new inorg-settings.test.ts)action/index.mjs) rebuilt so the CI freshness check passes🤖 Generated with Claude Code