Skip to content

ci: arm auto-merge on green by default, as unsigned-paas and cortex - #6

Closed
todie wants to merge 1 commit into
mainfrom
ci/auto-merge-on-green
Closed

todie wants to merge 1 commit into
mainfrom
ci/auto-merge-on-green

Conversation

@todie

@todie todie commented Oct 27, 2026

Copy link
Copy Markdown
Member

Arms GitHub auto-merge on green by default: the model unsigned-paas and cerebral-work/cortex landed on 2026-10-27, rolled out to active estate repos at Christian's request the same day (live-proven on unsigned-gg/waker).

What it adds

  • .github/workflows/auto-merge.yml, auto-merge-review.yml, .github/auto-merge/decide.sh and test-decide.sh, byte-identical to cerebral-work/cortex main 531b7b30 except the runs-on lines, which use this repo's pull-request runner.
  • A non-draft PR to main from a branch of this repo by a writer, or a patch or minor Dependabot update, gets gh pr merge --auto --merge --match-head-commit. GitHub merges only when every required check passes on that head. A draft, HOLD in the title, the labels hold, do-not-merge, needs-review, review-requested, a changes-requested review or a review request outside CODEOWNERS keeps it from arming.
  • .github/auto-merge-paths.txt: which files merge on green without the automerge-deploy label from a writer. Docs, specs, tests and Markdown always; source files only when no workflow deploys or publishes on push or release; build manifests, Dockerfiles, charts, deploy files and scripts always need the label; .github/, .claude/ and the leak-scan config never auto-merge.
  • .github/CODEOWNERS (* @todie) where none existed, since decide.sh reads it.
  • .github/workflows/auto-merge-test.yml, a non-required job running test-decide.sh when the auto-merge files change.
  • Main gained a main-required-checks ruleset requiring the checks that passed on recent merged PRs and whose workflow runs on every pull request (or the repo's classic required checks), shaped like cortex's.

Verified: the rollout checker passes on this commit (template byte-identity, internal runner, NEVER lines, no nested manifest or Dockerfile in a SAFE line, test-decide.sh green, signed commit).

After merge: allow_auto_merge is enabled. To hold any PR, open it as a draft or add needs-review.

Rollback: revert this merge, delete the main-required-checks ruleset, set allow_auto_merge to false.

@todie

todie commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

Closed by the rollout: this repo is public, so it cannot use the internal vendored actions in unsigned-gg/actions, and its brew test-bot actionlint config allows only BREW_COMMIT_APP_ID. Public repos are out of this rollout pending Christian's call; the main-required-checks ruleset created for it is removed, restoring the previous settings.

@todie todie closed this Oct 27, 2026
@todie
todie deleted the ci/auto-merge-on-green branch October 27, 2026 05:29
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