From 4f4aae0e396099407945e497a146809899a129d0 Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Sat, 29 Nov 2025 01:25:15 +0900 Subject: [PATCH] Check previous comments and mark resolved if fixed --- .github/workflows/claude-code.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-code.yml b/.github/workflows/claude-code.yml index 7101be1..0543fc5 100644 --- a/.github/workflows/claude-code.yml +++ b/.github/workflows/claude-code.yml @@ -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)"