Skip to content

Commit 758e61c

Browse files
committed
fix(ci): instruct model to post review via gh pr comment
1 parent bb599e9 commit 758e61c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/claude-review.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ jobs:
3535
anthropic_api_key: ${{ secrets.MINIMAX_API_KEY }}
3636
show_full_output: true
3737
prompt: |
38-
Review this pull request and always leave a review comment on the PR summarizing your findings.
39-
Even if the changes are minor, post a brief comment acknowledging the review.
38+
Review this pull request. Use `gh pr diff $PR_NUMBER` to get the diff, then analyze the changes.
4039
Focus on:
4140
1. Code correctness and potential bugs
4241
2. TypeScript type safety
@@ -45,6 +44,11 @@ jobs:
4544
5. Code style consistency
4645
4746
Be concise and actionable. Only comment on meaningful issues, not style nitpicks already covered by linters.
47+
48+
IMPORTANT: After completing your review, you MUST post your findings as a PR comment using:
49+
gh pr comment $PR_NUMBER --body "YOUR_REVIEW_HERE"
50+
51+
The PR number is available via: gh pr list --state open --json number --jq '.[0].number'
4852
claude_args: '--model MiniMax-M2.5 --max-turns 20 --allowedTools "Bash(git:*),Bash(gh:*),Read,Glob,Grep,WebFetch"'
4953

5054
interactive:

0 commit comments

Comments
 (0)