From faa900de1866c415165b456a8e9728129d121a89 Mon Sep 17 00:00:00 2001 From: giswqs Date: Sat, 28 Nov 2026 08:23:16 -0500 Subject: [PATCH] ci(review): set allow_fork_prs so Claude reviews and fixes fork PRs again claude-code-action 1.0.289 (bumped in #3177) skips pull requests from forks unless allow_fork_prs is "true" (upstream #2114), and the step still passes, so fork PRs such as #3184 got no review. Set it on the review step and both autofix steps. --- .github/workflows/claude-autofix.yml | 6 ++++++ .github/workflows/claude-code-review.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/claude-autofix.yml b/.github/workflows/claude-autofix.yml index 9f82d5fee2..bfc4b89416 100644 --- a/.github/workflows/claude-autofix.yml +++ b/.github/workflows/claude-autofix.yml @@ -385,6 +385,9 @@ jobs: github_token: ${{ github.token }} claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} allowed_non_write_users: "*" + # Since claude-code-action 1.0.289 the action skips a fork's pull request unless this is + # set; the job above already decides when a fork is handled (see the header). + allow_fork_prs: "true" prompt: | You are resolving merge conflicts on pull request ${{ github.repository }}#${{ github.event.pull_request.number }}. Its base branch `${{ github.event.pull_request.base.ref }}` has been merged into its head, and the files listed in `.autofix/conflicts.txt` have conflicts. The working directory is that unfinished merge. @@ -468,6 +471,9 @@ jobs: github_token: ${{ github.token }} claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} allowed_non_write_users: "*" + # Since claude-code-action 1.0.289 the action skips a fork's pull request unless this is + # set; the job above already decides when a fork is handled (see the header). + allow_fork_prs: "true" prompt: | You are addressing the open review threads on pull request ${{ github.repository }}#${{ github.event.pull_request.number }}. The working directory is the pull request's head${{ steps.merge.outputs.conflicts != '0' && ', with its base branch just merged in' || '' }}. diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 630ff2b27e..9b6fdae5dc 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -468,6 +468,12 @@ jobs: # and posts comments with the minimal-scope GITHUB_TOKEN, never runs the # PR's code, and restricts tools via claude_args below. allowed_non_write_users: "*" + # Since claude-code-action 1.0.289 the action skips every pull request + # from a fork ("Skipped, because allow_fork_prs is not true") unless + # this is set, and the check still passes, so nothing shows the review + # is missing. Fork PRs are the ones this pull_request_target workflow + # exists for; the job's `if:` above decides which are eligible. + allow_fork_prs: "true" prompt: | Perform a thorough code review of pull request ${{ github.repository }}/pull/${{ steps.pr.outputs.number }}.