Check previous comments and mark resolved if fixed

This commit is contained in:
dayuan.jiang
2025-11-29 01:25:15 +09:00
parent b00579b257
commit 4f4aae0e39

View File

@@ -76,6 +76,13 @@ jobs:
- Vercel AI SDK (streamText, useChat, tool calling)
- Multiple AI providers: Bedrock, Anthropic, OpenAI, Google, Azure, OpenRouter, Ollama
First, check previous review comments from github-actions bot using `gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/comments`.
For each previous comment:
- If the issue is fixed in the current code, reply "Resolved ✓" to that comment
- If the issue still exists, leave it alone
Then review the current diff for NEW issues only:
Review this PR for ONLY these issues:
1. Bugs that would cause runtime errors or broken functionality
2. Security issues (exposed secrets, API key leaks)
@@ -100,4 +107,4 @@ jobs:
Use `mcp__github_inline_comment__create_inline_comment` for inline comments.
Be very selective - if there are no real bugs, just say "LGTM" in a PR comment.
claude_args: |
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),WebFetch(domain:ai-sdk.dev)"
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh api:*),WebFetch(domain:ai-sdk.dev)"