No way to delete a stack locally whose branches are deleted
まだ誰も着手していません。
評価
調査の方向性
gh stack unstack --local のエントリーポイントから始め、gh stack sync が stack のブランチを prune した後に発生する失敗を再現します。unstack が存在しないローカルブランチとリモートブランチをどのように処理するかを追跡し、両方の種類のブランチが削除された stack が失敗せずに削除されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Context
Our repo has the "Delete head on merge" option, which makes it so that when merging a stack from the GitHub website, the feature branches get deleted also.
Locally, I also ran gh stack sync which prompted me to prune the branches.
The stack remained for some reason (I see there's a related bug), so I tried to unstack it locally since it no longer existed on remote.
Issue / Feature request
I expected that gh stack unstack --local would destroy the stack even if the branches do not exist but it failed.
To clean my local repo, I had to re-create the branches in the stack with the same names and then unstack succeeded.
Is it possible to have unstack in the case where both the local & remote branches no longer exist to consider them pruned, skip them, and not fail?
- 主要言語
- Go
- スター
- 1.5k
- フォーク
- 73
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 7
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
github/gh-stack のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
feature request topic: cli - general
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
feature request topic: auto-merge
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug topic: docs
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
github/gh-stack の issue をすべて見る
似ている issue
-
feature-request helm
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
gravitational/teleport#69785 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
crossplane/crossplane#7859 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100