No way to delete a stack locally whose branches are deleted

Aperta
#439 0 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
git, github, go
Ambito
cli

Direzione di ricerca

Parti dal punto di ingresso gh stack unstack --local e riproduci il problema dopo che gh stack sync ha potato i branch dello stack. Traccia il modo in cui unstack gestisce i branch locali e remoti mancanti, quindi verifica che uno stack con entrambi i tipi di branch eliminati venga rimosso senza errori.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature request topic: cli - other
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?

Lingua principale
Go
Stelle
1.5k
Fork
73
Merge medio
1g 8h
PR unite (30g)
7

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/gh-stack

Tutte le issue di github/gh-stack

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.