No way to delete a stack locally whose branches are deleted
還沒有人認領這個 Issue。
評估
研究方向
從 gh stack unstack --local 入口開始,在 gh stack sync 清理了 stack 分支後重現該失敗。追蹤 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.6k
- 分支
- 78
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 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
相似的 Issue
-
agent-butler-finding bug
難度 1/5 1 小時以內 新手友好度 94/100
jordansmall/spindrift#4367 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
kind/engineering pulumi/pulumi-terraform Task Workflow Failure
難度 2/5 1-3 小時 新手友好度 68/100
pulumi/pulumi-terraform#1215 ·
維護者通常 1 天內回覆
-
documentation
難度 2/5 1-3 小時 新手友好度 88/100
githubnext/gh-aw-workshop#4132 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
JuliusBrussee/caveman#1177 · 1 則留言 ·
維護者通常 1 天內回覆