github / github/gh-stack

gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata

Open
#137 1 comment 4 reactions 0 assignees View on GitHub
bug topic: cli - sync
Dominant language
Go
Stars
1.5k
Forks
70
Avg merge
1d 8h
Merged PRs (30d)
7

Description

gh stack sync --prune for a completed stack deletes the branch but leaves stack in gh stack checkout metadata.

Repro steps:
1. Create a stack with 1 branch.
2. Submit PR
3. Complete PR
4. Run gh stack sync --prune
5. Branch is synced and deleted
6. Run `gh stack checkout`
7. Observe

Expected: Stack should be deleted
Actual: Stack is not deleted, and cannot be selected because the branch no longer exists.
Workaround: Create a branch with the same name as one that doesn't exist. Run `gh stack untrack`, delete branch.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.