Skip to content

ci(dispatch): force-push the disposable dispatch branch#37

Merged
mike-diff merged 1 commit into
mainfrom
ci-dispatch-force-push
Jun 24, 2026
Merged

ci(dispatch): force-push the disposable dispatch branch#37
mike-diff merged 1 commit into
mainfrom
ci-dispatch-force-push

Conversation

@mike-diff

Copy link
Copy Markdown
Owner

Problem

Re-dispatching an issue whose prior PR was closed (not deleted) failed at the push step with non-fast-forward. The remote dispatch/issue-N branch still held the closed PR's commit, so the new run's push was rejected. This caused run 28068895061 on issue #33 to fail at step 11 even though the agent (step 10) succeeded.

Changes

  • .github/workflows/dispatch.yml: the push in the commit/open-PR step is now git push -u --force.

How to test

Re-dispatch an issue that already has a closed PR with a surviving branch (issue #33 is the live case). Before this change the push fails with non-fast-forward; after it, the new run replaces the remote branch and opens the PR.

Verification

go build ./... pass. YAML re-parsed, 12 steps intact, no em dashes. Force-push is safe here because a dispatch branch is a disposable throwaway owned by one issue: there is never independent work on it that a fresh run would not reproduce.

Closes nothing (workflow fix).

Re-dispatching an issue whose prior PR was closed (not deleted) failed at
the push step with non-fast-forward, because the remote dispatch/issue-N
branch still held the closed PR's commit. A dispatch branch is a throwaway
owned by one issue, so the new run must replace it, not be rejected by it.

Force-push makes each dispatch authoritative for its branch.
@mike-diff mike-diff merged commit 9eb7eeb into main Jun 24, 2026
2 checks passed
@mike-diff mike-diff deleted the ci-dispatch-force-push branch June 24, 2026 02:24
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