github / github/gh-stack

`gh stack sync` should tell you what branches it wants to prune on your behalf

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

描述

Here's a state where I just used `gh stack sync` after manually merging PR 2 in a stack of 7 PRs.

Image

Everything looks good, except `Prune 1 merged branch` is a bit unclear.

I've already run `gh stack sync` after merging PR 1 too, so the branch for PR 1, `feature/sources-1-oak-cache` is already gone.

So the 1 branch to prune must be referring to `feature/sources-2-oak-source`, which makes sense, but it requires me to kind of interpret between the lines here.

It would be a bit more obvious (and safer?) if `Prune 1 merged branch` just listed the names of the branches it wants to prune somewhere. You see them after you say `Y`, but that's a bit too late 😬

Image

貢獻指南

開啟貢獻指南

研究方向

Start by tracing the `gh stack sync` command's prune confirmation output and the code that lists merged branches. Update the pre-confirmation message so it names each branch that will be pruned, then verify that the names shown before confirmation match the branches removed after approval.

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

評估

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

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

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