github / github/gh-stack

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

未關閉
#137 1 則留言 4 個 reaction 已指派 0 人 在 GitHub 檢視
bug topic: cli - sync
主要語言
Go
星號
1.5k
分支
70
平均合併
1 天 8 小時
30 天內合併 PR
7

描述

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.

貢獻指南

開啟貢獻指南

研究方向

使用一個包含一個分支的 stack 重現該問題:在其 PR 完成後執行 `gh stack sync --prune`,然後執行 `gh stack checkout`。追蹤 sync prune 路徑以及 checkout 中繼資料處理;完成標準是,已完成的 stack 從中繼資料中移除,且不再作為無效的可選 stack 顯示。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
go
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
64/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。