Skip to content

promote: branch-create/delete guard to main (unblocks #1274 staging)#82

Merged
LukasWodka merged 1 commit into
mainfrom
develop
Jul 26, 2026
Merged

promote: branch-create/delete guard to main (unblocks #1274 staging)#82
LukasWodka merged 1 commit into
mainfrom
develop

Conversation

@LukasWodka

@LukasWodka LukasWodka commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Promotes the branch-create/delete guard (#81) to main.

This must be on main before any staging branch is cut for #1274 — the advance-deploy-env reusable is consumed @main, and without the guard, creating a staging branch mass-advances ~50 PRs per repo to FR on staging.

Carries only the guard — #80 (column collapse) is still open, so the On dev code is not included (that's a separate coordinated cutover). Merge with a merge commit.

After this merges I can safely create the 8 staging branches (#1274).


Note

Low Risk
Single workflow guard on a non-deploy path; reduces incorrect automation with no change to merge/deploy advancement behavior.

Overview
Prevents accidental mass kanban updates when a tracked branch is created or deleted instead of receiving a normal merge push.

The advance job in advance-deploy-env.yml now runs only when github.event.created and github.event.deleted are not true. On create/delete, before is the zero hash and the workflow would otherwise scan the last ~50 commits and mark many PRs as FR on staging (or the branch’s mapped status)—a problem when cutting new staging branches for #1274.

No change to how real deploy pushes resolve PRs or update project fields; only create/delete push events are skipped.

Reviewed by Cursor Bugbot for commit 67b204c. Bugbot is set up for automated code reviews on this repo. Configure here.

On a branch-CREATION push the before-hash is all-zeros, and the range logic
falls back to 'the last 50 commits', extracting and advancing every PR ref in
them. A branch creation merges nothing — the commits are inherited from the
source branch — so this mass-advances ~50 recent PRs' kanban items on every new
branch. That makes cutting a new 'staging' branch (D8/#1274) corrupt the board,
the same class as the default-branch-change incident.

Guard the advance job with 'github.event.created != true && github.event.deleted
!= true'. A create/delete is not a deploy event.

Prerequisite for #1274 (create staging in every repo) — must be on main before
any staging branch is cut.
@LukasWodka LukasWodka self-assigned this Jul 26, 2026
@LukasWodka LukasWodka added the skip-fr-gate Emergency override of the FR gate. Requires a written reason on the PR. label Jul 26, 2026
@LukasWodka

Copy link
Copy Markdown
Contributor Author

👋 Heads-up — Code review queue is at 40 / 30

Above the WIP limit. The team convention is to review existing PRs before opening new work.

Open PRs currently in Code review (oldest first):

Pull from review before opening new work. (This is a nudge from the kanban WIP check, not a block.)

@LukasWodka
LukasWodka merged commit ec297aa into main Jul 26, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-fr-gate Emergency override of the FR gate. Requires a written reason on the PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant