Skip to content

fix(sync): don't close another branch's pull requests by accident - #42

Merged
wsehl merged 1 commit into
bstack/wsehl/70c558ad2f27440984a1cd55d30e71fdfrom
bstack/wsehl/20e5b7957ec44e9ca465e774c0248cd4
Sep 29, 2026
Merged

wsehl merged 1 commit into
bstack/wsehl/70c558ad2f27440984a1cd55d30e71fdfrom
bstack/wsehl/20e5b7957ec44e9ca465e774c0248cd4

Conversation

@wsehl

@wsehl wsehl commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Commits keep their bstack-id when cherry-picked, and a new branch cut
from the middle of a stack shares its lower commits. Syncing such a
branch matched the original stack, treated its remaining changes as
dropped, and closed their PRs.

Saved stacks now record the branch they were synced from (a detached
checkout keeps the previous one). If a sync would close PRs of a stack
last synced from a different branch, bstack stops before changing
anything and explains why. Pass --close-omitted to close them anyway,
for example after renaming the branch. Existing state without a branch
behaves as before.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) noreply@anthropic.com

Commits keep their bstack-id when cherry-picked, and a new branch cut
from the middle of a stack shares its lower commits. Syncing such a
branch matched the original stack, treated its remaining changes as
dropped, and closed their PRs.

Saved stacks now record the branch they were synced from (a detached
checkout keeps the previous one). If a sync would close PRs of a stack
last synced from a different branch, bstack stops before changing
anything and explains why. Pass `--close-omitted` to close them anyway,
for example after renaming the branch. Existing state without a branch
behaves as before.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
bstack-id: 20e5b7957ec44e9ca465e774c0248cd4
@wsehl
wsehl added this pull request to stack #43 September 29, 2026 10:33
@wsehl
wsehl merged commit 83266e3 into main Sep 29, 2026
1 check passed
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