chore: .claude/worktrees/ を gitignore する - #309
Conversation
Claude Code の作業用 git worktree は .claude/worktrees/<name> に作られるが gitignore されていないため、worktree を作った時点で git status に `?? .claude/worktrees/` が出て `git add -A` で誤ってコミットされうる。 パターンの表記は既に追加済みの sparkle-design-internal に揃えた。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedNext included review available in 32 minutes. View limit detailsLimit details: You’ve used all 5 included reviews currently available. Your 17 included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f5124ab7bd
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # package manager lock files | ||
| # pnpm-lock.yaml | ||
|
|
||
| # Claude Code の作業用 git worktree(.claude/worktrees/<name> に作成される) |
There was a problem hiding this comment.
Add the required English translation to this comment
This newly added comment is Japanese-only, while the repository requires comments to put Japanese first and then provide English with an en: prefix. Add the corresponding en: comment so the checked-in configuration follows the documented bilingual comment convention.
AGENTS.md reference: AGENTS.md:L65-L67
Useful? React with 👍 / 👎.
背景
Claude Code の作業用 git worktree は
.claude/worktrees/<name>に作られるが、このリポジトリの.gitignoreには登録されていなかった。現状
.claude/worktrees/は空ディレクトリなのでgit statusには出ていないが、worktree を 1 つ作った時点で?? .claude/worktrees/が出るようになり、git add -Aで worktree 一式を誤ってコミットしうる。sparkle-design-cli 側で同じ問題が実際に起きたので、ワークスペース全体で揃える目的の予防的な追加。
変更
.gitignoreに.claude/worktrees/を追加。既存の.claude/skills/*allowlist ブロックの直前に置いた(.claude系のエントリをまとめるため。allowlist の挙動には影響しない)。パターンの表記(末尾スラッシュあり・先頭スラッシュなし)は、既に同じ行を持っている
sparkle-design-internalの.gitignoreに揃えた。他リポジトリの状況
sparkle-designsparkle-design-clisparkle-design-internal.gitignore:8に登録済み検証
git check-ignore -v .claude/worktrees/_probe→.gitignore:74でヒットすることを確認.gitignoreのみの変更でビルド成果物・追跡中ファイルへの影響はなし(git statusに既存の追跡ファイルが新たに ignore される差分は出ていない)🤖 Generated with Claude Code