No way to delete a stack locally whose branches are deleted

Abierto
#439 0 comentarios 3 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
git, github, go
Área
cli

Línea de trabajo

Comienza en el punto de entrada gh stack unstack --local y reproduce el fallo después de que gh stack sync haya podado las ramas del stack. Rastrea cómo unstack gestiona las ramas locales y remotas que faltan, y verifica que un stack con ambos tipos de ramas eliminados se elimine sin fallar.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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?

Lenguaje dominante
Go
Estrellas
1.5k
Forks
73
Merge medio
1 d 8 h
PR fusionados (30 d)
7

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/gh-stack

Todos los issues de github/gh-stack

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.