Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#46 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
静か
技術スタック
shell
領域
cli, tooling

調査の方向性

まず indexzero/skiffs#3 を確認し、skiffs prune --apply が、破棄可能なマージ済みブランチとマージ済み worktree のワークフローを、gitignored パス配下のスクラッチコンテンツも含めてカバーしていることを検証します。次に scripts/bonsai と scripts/wtprune を削除し、git grep -n -iE 'bonsai|wtprune' を実行して、履歴以外の参照が残っていないことを確認します。

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Shell
スター
1
フォーク
0
平均マージ
11分
マージ済み PR(30日)
2

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

indexzero/dotfiles のほかの issue

indexzero/dotfiles の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。