github / github/gh-stack

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

Ouverte
#137 1 commentaire 4 réactions 0 personnes assignées Voir sur GitHub
bug topic: cli - sync
Langage dominant
Go
Étoiles
1.5k
Forks
70
Merge moyen
1 j 8 h
PR mergées (30 j)
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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Reproduce the issue with a one-branch stack by running `gh stack sync --prune` after its PR is completed, then run `gh stack checkout`. Trace the sync prune path and the checkout metadata handling; done means the completed stack is removed from metadata and is no longer presented as an invalid selectable stack.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
go
Domaine
cli
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
64/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.