Skip to content

ci: drop --delete-branch from the changelog auto-merge - #387

Merged
hokiepokedad2 merged 2 commits into
mainfrom
ci/fix-changelog-merge-queue
Aug 5, 2026
Merged

ci: drop --delete-branch from the changelog auto-merge#387
hokiepokedad2 merged 2 commits into
mainfrom
ci/fix-changelog-merge-queue

Conversation

@hokiepokedad2

Copy link
Copy Markdown
Contributor

The v2.12.0 release cut failed at the Enable auto-merge step:

X Cannot use `-d` or `--delete-branch` when merge queue enabled

main gained a merge queue in #378/#379. gh pr merge rejects --delete-branch outright rather than ignoring it, so the step exited 1 and failed the whole workflow.

The release itself was fine — v2.12.0 published, the image built and pushed, and the changelog PR (#386) was created and approved successfully. Only the final arming failed, leaving #386 sitting unmerged. I armed it by hand to unblock the release.

Fix

Drop the flag. It was redundant anyway: peter-evans/create-pull-request above already sets delete-branch: true, which removes the branch once the PR closes.

--squash is kept even though the queue now dictates the merge strategy (gh warns the merge strategy for main is set by the merge queue), so the intent still reads correctly if the queue is ever removed.

Note

This is fallout from enabling the merge queue, and it is the only occurrence — I grepped every workflow for --delete-branch and release-changelog.yml:168 was the sole gh pr merge use. auto-merge-deps.yml calls gh pr merge --auto --squash without it, so Dependabot auto-merge was never affected.

The v2.12.0 release cut failed at "Enable auto-merge":

  X Cannot use `-d` or `--delete-branch` when merge queue enabled

`main` gained a merge queue in #378/#379, and gh rejects the flag outright
rather than ignoring it, so the step exited 1 and the whole workflow failed. The
changelog PR itself was created and approved fine -- only the arming failed.

The flag was redundant regardless: peter-evans/create-pull-request above already
sets `delete-branch: true`, which removes the branch once the PR closes.

--squash is kept even though the queue now dictates the merge strategy (gh warns
about it) so the intent still reads correctly if the queue is ever removed.
@github-actions github-actions Bot added the ci label Aug 5, 2026
@hokiepokedad2
hokiepokedad2 merged commit 87d8940 into main Aug 5, 2026
8 checks passed
@hokiepokedad2
hokiepokedad2 deleted the ci/fix-changelog-merge-queue branch August 5, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant