github / github/gh-stack

No way to delete a stack locally whose branches are deleted

Đang mở
#439 0 bình luận 3 reaction 0 người được giao Xem trên GitHub
feature request topic: cli - other
Ngôn ngữ chính
Go
Star
1.5k
Fork
70
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
7

Mô tả

### 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](https://github.com/github/gh-stack/issues/137)), 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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start at the `gh stack unstack --local` entry point and reproduce the failure after `gh stack sync` has pruned the stack branches. Trace how unstack handles missing local and remote branches, then verify that a stack with both kinds of branches deleted is removed without failing.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
git, github, go
Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
68/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.