From a6a7c8729b2b50762b5a3b9c5d6a4ebbb46d8216 Mon Sep 17 00:00:00 2001 From: Peter Rekdal Khan-Sunde Date: Thu, 22 Oct 2026 05:39:36 +0200 Subject: [PATCH] Read the review conversation without check permissions gh pr view without --json also queries statusCheckRollup, which the job token cannot read, so the collect step failed with 'Resource not accessible by integration' on every pull request. Request only the title, body, comments and reviews. --- .github/workflows/claude-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/claude-review.yml b/.github/workflows/claude-review.yml index cb53e3bfb..5d549bbe9 100644 --- a/.github/workflows/claude-review.yml +++ b/.github/workflows/claude-review.yml @@ -83,7 +83,7 @@ jobs: gh api --paginate "repos/$REPO/pulls/$PR/files" --jq '.[] | "\(.status) \(.filename)"' } > review-context/diff.patch fi - gh pr view "$PR" --repo "$REPO" --comments > review-context/conversation.txt + gh pr view "$PR" --repo "$REPO" --json title,body,comments,reviews > review-context/conversation.txt gh api --paginate "repos/$REPO/pulls/$PR/comments" \ --jq '.[] | "\(.user.login) on \(.path):\(.line // .original_line) (\(.html_url))\n\(.body)\n"' \ > review-context/review-comments.txt