Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/claude-autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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' || '' }}.

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new allow_fork_prs input only has an effect on claude-code-action 1.0.289 or later, and the comment above says that version is where the fork skip began. The action is pinned to eb56b6666facdbd501035f4a0269d8caee2e7a8b with the comment # v1 (Claude Code 2.1.220), which doesn't show the 1.0.x version. I could not check the pinned commit offline. If it predates 1.0.289, the input is ignored and fork PRs stay skipped, and the check still passes. Please confirm the pin is at or after 1.0.289 before merging, and consider putting the action version in the pin comment, so the next bump can't drop it silently. I checked the rest: all three action steps (review at line 451, autofix at lines 374 and 469) now set the flag, and the job if: gates are unchanged.

Category: quality

prompt: |
Perform a thorough code review of pull request ${{ github.repository }}/pull/${{ steps.pr.outputs.number }}.

Expand Down
Loading