From 9d248e25adefc0ef342a7bc83ed046be9c5120eb Mon Sep 17 00:00:00 2001 From: "dayuan.jiang" Date: Sat, 29 Nov 2025 01:26:00 +0900 Subject: [PATCH] Resolve/collapse comment threads when issues are fixed --- .github/workflows/claude-code.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-code.yml b/.github/workflows/claude-code.yml index 0543fc5..092fd2d 100644 --- a/.github/workflows/claude-code.yml +++ b/.github/workflows/claude-code.yml @@ -78,7 +78,9 @@ jobs: 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 is fixed in the current code, resolve the comment thread using: + `gh api graphql -f query='mutation { resolveReviewThread(input: {threadId: "THREAD_ID"}) { thread { isResolved } } }'` + Get the thread ID from the comment's node_id field. - If the issue still exists, leave it alone Then review the current diff for NEW issues only: