Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

chore(scripts): retire bonsai + wtprune once skiffs `prune --apply` ships

Abierto
#46 0 comentarios 0 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
45/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
shell
Área
cli, tooling

Línea de trabajo

Empieza revisando indexzero/skiffs#3 y verifica que skiffs prune --apply cubra el flujo de trabajo de ramas fusionadas y worktrees fusionados desechables, incluido el contenido temporal bajo rutas ignoradas por git. Después elimina scripts/bonsai y scripts/wtprune, y ejecuta git grep -n -iE 'bonsai|wtprune' para confirmar que no quedan referencias fuera del historial.

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

Descripción

Summary

scripts/bonsai and scripts/wtprune are the two branch/worktree pruners in this repo:

  • scripts/bonsai — bash branch-pruning analyzer (local × remote × PR × worktree →
    ARESAFE/MAYBESAFE), read-only, single repo.
  • scripts/wtprune — interactive pruner that removes integrated (⊂) worktrees via
    wt remove.

Both are superseded by skiffs prune --apply (indexzero/skiffs#3), which folds bonsai's
analysis and wtprune's action (including wt remove delegation, so the pre-remove /
scratch-rescue hooks still fire) into one safe, worktree-aware pass. Once that ships and is
verified, retire both scripts.

Blocked by: indexzero/skiffs#3.

Tasks

  • Confirm skiffs prune --apply covers the real workflow end-to-end (a live run on a
    disposable merged branch + a merged worktree behaves correctly, and scratch content
    under gitignored paths survives via the delegated wt remove).
  • git rm scripts/bonsai
  • git rm scripts/wtprune
  • git grep -n -iE 'bonsai|wtprune' returns nothing outside intentional history.

Notes

  • ~/.scripts is a symlink to scripts/ (see dotfiles/.exports, install/setup.sh), so
    deleting the files removes them from PATH automatically — there's no installed copy or
    installer entry to clean up.
  • No other tracked file references either script by name; the only occurrences are within the
    two files themselves.
  • This is intentionally a separate, reversible change from the skiffs work — don't delete
    until #skiffs3 is merged and the live verification above passes.
Lenguaje dominante
Shell
Estrellas
1
Forks
0
Merge medio
11 min
PR fusionados (30 d)
2

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin 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 indexzero/dotfiles

Todos los issues de indexzero/dotfiles

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.