From 386ec90460b90327cc5375806b5424beb7787eec Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 22 Jan 2026 16:52:12 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20config-base=20=E3=82=A4=E3=83=A1?= =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=81=AB=20AI=20=E3=83=AC=E3=83=93=E3=83=A5?= =?UTF-8?q?=E3=83=BC=E3=83=95=E3=83=83=E3=82=AF=E3=81=A8=20Gemini=20CLI=20?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit config-base イメージを使用するリポジトリでAIレビューフックが自動的に有効になるように設定を更新。 ## 変更内容 ### AIレビューフックの設定追加 - PostToolUse: `post_pr_ai_review.py` (PR作成後の自動AIレビュー) - PreToolUse: `pre_exit_plan_ai_review.py` (ExitPlanMode前のプランレビュー) ### フックパスの絶対パス化 - 相対パス `.claude/hooks/` から絶対パス `/home/vscode/.claude/hooks/` に変更 - これによりconfig-baseイメージを使用するすべてのリポジトリでフックが動作 ### Gemini CLI のインストール - `@google/gemini-cli@0.25.0` をイメージに追加 - Codex と Gemini の両方でAIレビューが実行可能に Closes #368 Co-Authored-By: Claude Opus 4.5 --- .devcontainer/Dockerfile | 4 +++- .devcontainer/claude-settings.local.json | 24 ++++++++++++++++++++++-- npm/global.json | 4 ++++ 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index ac01356b..76491c24 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -57,12 +57,14 @@ COPY npm/global.json /tmp/npm-global.json RUN CLAUDE_CODE_VERSION=$(node -pe "require('/tmp/npm-global.json').dependencies['@anthropic-ai/claude-code'].version") \ && CODEX_VERSION=$(node -pe "require('/tmp/npm-global.json').dependencies['@openai/codex'].version") \ && VERCEL_VERSION=$(node -pe "require('/tmp/npm-global.json').dependencies['vercel'].version") \ + && GEMINI_CLI_VERSION=$(node -pe "require('/tmp/npm-global.json').dependencies['@google/gemini-cli'].version") \ && npm install -g eslint \ typescript \ typescript-language-server \ @anthropic-ai/claude-code@${CLAUDE_CODE_VERSION} \ @openai/codex@${CODEX_VERSION} \ - vercel@${VERCEL_VERSION} + vercel@${VERCEL_VERSION} \ + @google/gemini-cli@${GEMINI_CLI_VERSION} USER vscode RUN bash -lc "cargo install similarity-ts" || true \ diff --git a/.devcontainer/claude-settings.local.json b/.devcontainer/claude-settings.local.json index acd0a902..6e69b492 100644 --- a/.devcontainer/claude-settings.local.json +++ b/.devcontainer/claude-settings.local.json @@ -329,7 +329,7 @@ "hooks": [ { "type": "command", - "command": "python3 .claude/hooks/block_git_no_verify.py" + "command": "python3 /home/vscode/.claude/hooks/block_git_no_verify.py" } ] }, @@ -338,7 +338,27 @@ "hooks": [ { "type": "command", - "command": "python3 .claude/hooks/pre_git_quality_gates.py" + "command": "python3 /home/vscode/.claude/hooks/pre_git_quality_gates.py" + } + ] + }, + { + "matcher": "tool_name == 'ExitPlanMode'", + "hooks": [ + { + "type": "command", + "command": "python3 /home/vscode/.claude/hooks/pre_exit_plan_ai_review.py" + } + ] + } + ], + "PostToolUse": [ + { + "matcher": "tool_name == 'Bash'", + "hooks": [ + { + "type": "command", + "command": "python3 /home/vscode/.claude/hooks/post_pr_ai_review.py" } ] } diff --git a/npm/global.json b/npm/global.json index 86ea3352..f9090157 100644 --- a/npm/global.json +++ b/npm/global.json @@ -25,6 +25,10 @@ "version": "0.88.0", "overridden": false }, + "@google/gemini-cli": { + "version": "0.25.0", + "overridden": false + }, "bash-language-server": { "version": "5.6.0", "overridden": false