github / github/gh-stack

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

オープン
#162 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る
feature request topic: cli - sync
主要言語
Go
スター
1.5k
フォーク
70
平均マージ
1日 8時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。