fix: 自動コードレビューの結果を PR にコメントさせる - #571
Merged
Merged
Conversation
code-review プラグインは --comment を渡さない限り、レビュー結果を実行ログへ 出力するだけで GitHub にコメントを投稿しない仕様のため、PR #568・#570 では ジョブが success でも指摘が一切残らなかった。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WWxo2ZpLgqp8pd54g9qF1f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
問題
claude-code-review.ymlは毎回 success で終わるのに、PR にレビューコメントが1件も付いていなかった(#568・#570 で確認)。原因
code-reviewプラグインの仕様に、次の記述がある。/install-github-appが生成した prompt には--commentが無く、レビュー結果を実行ログに出力するだけで終了する設定になっていた。実行ログにもpermission_denials_count: 1/No buffered inline commentsが残っている。変更
prompt の末尾に
--commentを追加。プラグイン本体(4エージェント並列レビュー+確信度スコアリング)はそのまま使う。補足:コメントが付かない正常ケース
このプラグインは以下を最初にスキップする。修正後もこれらでは無言のまま終わる。
検証
このPRのマージ後、実コードを含む次のPRでコメントが投稿されるかを確認する。
🤖 Generated with Claude Code
https://claude.ai/code/session_01WWxo2ZpLgqp8pd54g9qF1f