Let merge-queue push to the default branch of every ci-go repository (MQ-8) #56
Loading…
Reference in a new issue
No description provided.
Delete branch "mq-8-merge-queue-push"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Work package: https://openproject.home.romaine.life/wp/MQ-8
Held: lands together with merge-queue's change that writes each user's go.mod/go.sum bump straight onto its default branch once a group-tested library lands (anvil stage 6a, RLMQ-6). Do not land on its own.
What it changes live
The default branch of each of the 92 go suite (
ci-go) repositories goes from refusing every push to taking pushes from the Forgejo usermerge-queuealone:enable_pushfalse -> true,enable_push_whitelistfalse -> true,push_whitelist_usernames[] -> ["merge-queue"]. The plan is exactly that: 0 to add, 92 to change, 0 to destroy, each change those three attributes on a rule moved fromlistedtobumped.Before, read live from this PR's first plan (a temporary output, removed again): all 92 had push off, no whitelisted users, teams or deploy keys, no signed-commit requirement and no protected file patterns, so no existing whitelist entry needed carrying over. Teams stay [] and deploy keys false, now written in.
Added
forgejo_branch_protection.bumped: the ci-go repositories' rules, the same suites and status contexts as before, with tofu owning who may push (a push setting made by hand there is undone by the next apply). Every other rule (signed commits, file patterns, reviews, merge/approval whitelists) stays ignored, as each repository has it.movedblocks fromlistedtobumped(movedtakes no for_each), and the adopted-repository import split between the two resources.local.forgejo_bump_pusher = "merge-queue", the one place the user is named (stage 8 renames it).Left alone
forgejo_branch_protection.listed, now the 61 non-Go protected branches: unchanged, push settings still ignored. romaine-life/at keeps push on with deploy keys whitelisted; nelsong6/at-tmux keeps its stored (inactive, push off) whitelist entrynelson.A repository that later gains or loses the go suite needs a moved block between the two resources, or the apply deletes its rule and creates it again (said in the file).
🤖 Generated with Claude Code
2964c0af6d3eece96ae4