Repository navigation
fix: @claude の返信を過去レビューと誤認して差分レビューになる問題を修正 - #143
Merged
Merged
Conversation
claude[bot] のコメントをすべて過去レビューとして数えていたため、 @claude への返信しかない PR でも INCREMENTAL REVIEW になっていた。 「AI トリアージ」を含むコメントだけを数える。 Co-authored-by: Claude <noreply@anthropic.com>
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の返信しかない PR でも、自動レビューが差分レビュー(INCREMENTAL REVIEW)のモードで動いていました。実例は hametuha/chiramise#16 です。
原因
Fetch PR conversation and commitsステップは、claude[bot]のコメントをすべて過去のレビューとして数えています。Claude Assistant の返信も同じclaude[bot]から投稿されるため、レビュー済みだと誤って判定されていました。修正
claude[bot]のコメントのうち、本文に「AI トリアージ」を含むものだけを数えます。AI トリアージ: PR #n)と、差分レビューの見出し(AI トリアージ(差分レビュー): PR #n)の両方が該当します。pr_conversation)は、これまでどおり Assistant の返信も含めてプロンプトに渡します。jq の条件は、Assistant の返信1件とトリアージ2件の入力で 2 になることを確認しました。
確認
マージ後、chiramise#16 に
@claude auto-reviewとコメントし、通常レビューとしてコメントが投稿されることを確認します。🤖 Generated with Claude Code