feat: 仮想ファイル状態をコミットできる ghost-commit CLI を追加#1
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Code Review (Google Style)TL;DR重要な指摘があります。修正を推奨します。
Details🚨 issue
💡 suggestion
🔧 nitpick
❓ question
👏 praiseシンプルで明確なプロジェクト構成 Homebrew Formula の同梱 |
- Formula を head-only に変更(不正な revision: "HEAD" と未作成タグの問題を解消) - MIT LICENSE ファイルを追加 - Go ユニットテストを追加 - .gitignore に *.exe を追加 - README の install/build コマンドを修正 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Code Review (Google Style) · Codex CLI 0.139.0 によってレビューが実行されましたTL;DR重大な指摘はありませんでした。 Details🚨 issue(なし) 💡 suggestion(なし) 🔧 nitpick(なし) ❓ question(なし) 👏 praise
🧭 triage notes(なし) 🔎 reviewed areas
✅ verification
|
Add Go build/test CI and zizmor workflow security scanning for the PR request to make merge readiness visible in GitHub Actions.
Use the commit SHA behind the checkout v6.0.3 tag so zizmor's ref-version check accepts the workflow pins.
Replace the placeholder CLI with the requested virtual staging workflow: commit supplied file contents and deletions without rewriting the working tree, while preserving unrelated staged changes.
Canonicalize requested repository paths before duplicate and staged-overlap checks so equivalent path spellings cannot bypass safety checks.
Resolve reviewer findings by making CLI paths relative to the invocation directory inside the repository and rejecting parent/child staged overlaps before moving HEAD.
Allow subdirectory invocations to target parent paths that remain inside the repository and handle virtual file/directory replacements by clearing conflicting index entries first.
Make help exit successfully and refuse to move HEAD while merge, rebase, cherry-pick, or revert state files are present.
Code Review (Google Style) · Codex CLI 0.139.0 によってレビューが実行されましたTL;DR重大な指摘はありませんでした。 Details🚨 issue(なし) 💡 suggestion(なし) 🔧 nitpick(なし) ❓ question(なし) 👏 praise
🧭 triage notes
🔎 reviewed areas
✅ verification
|
Add README.ja.md and cross-link the English and Japanese documentation for the PR request.
Summary
ghost-commitCLI を実装--file PATH=SOURCE、--file PATH=-、--delete PATHに対応し、指定していない staged 変更はコミットに混ぜないREADME.ja.mdを追加して相互リンクを設置Test plan
go test ./...go build -o /tmp/ghost-commit-review .ruby -c Formula/ghost-commit.rbbrew style Formula/ghost-commit.rbactionlintzizmor .github/workflows