From aebce19d63246ebeda127c29727753a77b18430a Mon Sep 17 00:00:00 2001 From: Andreas Ronneseth Date: Tue, 19 May 2026 16:07:08 -0700 Subject: [PATCH] fix(workflows): add --paginate to gh api call for review comments Without pagination, gh api only returns ~30 comments per page, so busy PRs could hide older threads and cause duplicate comments. Co-authored-by: Cursor --- .github/workflows/claude-review.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/claude-review.yaml b/.github/workflows/claude-review.yaml index 0df9321..d7dba0b 100644 --- a/.github/workflows/claude-review.yaml +++ b/.github/workflows/claude-review.yaml @@ -56,7 +56,7 @@ jobs: 2. If the diff exceeds ${{ inputs.max_diff_lines }} lines changed, or the PR is too complex to confidently review (many files, complex logic across multiple systems, architectural changes), defer to human review: `gh pr review ${{ github.event.pull_request.number }} --comment --body "AI Review: Deferring to human review — this PR exceeds the automated review threshold."` Then stop. Do NOT approve. Do NOT post inline comments. - 3. Run `gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/comments` to read ALL existing inline review comments and reply threads. Also run `gh pr view ${{ github.event.pull_request.number }} --comments` for top-level PR comments. + 3. Run `gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/comments --paginate` to read ALL existing inline review comments and reply threads. Also run `gh pr view ${{ github.event.pull_request.number }} --comments` for top-level PR comments. 4. Any issue that was already raised AND responded to by a human is RESOLVED. Do not re-raise it, even if you still disagree. The human has the final call. 5. Only look for NEW issues that have not been previously discussed.