Skip to content

fix: remove --delete-branch from mergePR to prevent worktree error - #143

Merged
AmethystLiang merged 1 commit into
mainfrom
fix/merge-pr-delete-branch
Mar 27, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
fix/merge-pr-delete-branch

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Problem

gh pr merge --delete-branch fails when the user's worktree is checked out on the branch being merged. Git refuses to delete a checked-out branch, causing the entire merge command to report failure even though the merge itself succeeded.

Solution

  • Removed --delete-branch from the gh pr merge call. Branch cleanup is separated:
    • Local branch: handled by worktree deletion
    • Remote branch: handled by GitHub's "Automatically delete head branches" repo setting
  • Added GH_PROMPT_DISABLED=1 env var to prevent interactive prompts in non-TTY environments

gh pr merge --delete-branch fails when the current worktree is on the
branch being merged, because git refuses to delete a checked-out branch.
Also set GH_PROMPT_DISABLED=1 to prevent interactive prompts.

Branch cleanup responsibilities:
- Local branch: handled by worktree deletion
- Remote branch: handled by GitHub's auto-delete head branches setting
@AmethystLiang
AmethystLiang merged commit 18bc901 into main Mar 27, 2026
1 check passed
@AmethystLiang
AmethystLiang deleted the fix/merge-pr-delete-branch branch March 27, 2026 19:57
Cubatica added a commit to Cub-HQ/orca that referenced this pull request Sep 24, 2026
* fix(factory): move portable Orca stages to Hetzner (stablyai#143)

* fix(factory): finish Hetzner rollout and unblock Orca checks (stablyai#143)

---------

Co-authored-by: df-pipeline <[email protected]>
epocsohtets added a commit to epocsohtets/orca that referenced this pull request Nov 29, 2026
The number was a counter in renderer memory, given in the order items were first seen, so the same 업무
showed stablyai#300 after a drop and stablyai#143 after a restart. inAX tasks have no number of their own; the one counter
now lives in home-item-numbers.ts, kept in localStorage, and continues from it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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