From 85f6bc07d44f54673163ad4fed6045a37ccabad0 Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Sun, 11 Jan 2026 15:20:46 -0500 Subject: [PATCH] fix(ci): add explicit instruction to post review as PR comment The AI reviewer was completing the review but not posting it because the prompt didn't explicitly instruct it to use gh pr comment. --- .github/workflows/ai-review.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index 7ba104ef..9e0a7f53 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -127,6 +127,13 @@ jobs: End your review with: > 🤖 Reviewed by `${{ env.REVIEW_MODEL }}` + ## IMPORTANT: Posting the Review + After completing your analysis, you MUST post the review as a PR comment using: + ``` + gh pr comment ${{ github.event.pull_request.number || github.event.issue.number || github.event.inputs.pr_number }} --body "" + ``` + Use a heredoc for the body to handle multi-line content properly. + claude_args: | --model ${{ env.REVIEW_MODEL }} --allowedTools "Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Read,Glob,Grep"