Repository navigation
ci(review): set allow_fork_prs so Claude reviews and fixes fork PRs again - #3224
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
| # 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" |
There was a problem hiding this comment.
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
Code reviewI reviewed the two workflow files (six added lines, no code changes) against the workflow headers, the Bugs: None found. The YAML indentation matches the neighbouring Security: None new. Setting the flag re-enables the agent on fork PRs under Performance: None found. Quality:
AGENTS.md: None found. The change touches CI only, so the app, CLI, Python, web and mobile surfaces don't apply. Not verifiable here: the PR body says the real test is the next fork PR. Because Change sizeCompared with the base: merge base cee4b99 to PR head faa900d, the whole PR against main.
|
Since #3177 bumped
anthropics/claude-code-actionfrom 1.0.280 to 1.0.289, Claude Code Review passes on fork PRs without posting anything. The log saysSkipped, because allow_fork_prs is not true(seen on #3184 at 496ce24).Upstream added an
allow_fork_prsinput (anthropics/claude-code-action#2094) and then made it default to"false"(#2114, a breaking change). With that default, the action skips fork pull requests before it checks anything out. Both of our workflows run underpull_request_targetmainly to serve forks, so they were skipped too.Change
claude-code-review.yml: setallow_fork_prs: "true"on the review step.claude-autofix.yml: set it on both action steps (resolving conflicts and fixing the review threads). Autofix pushes to a fork when "Allow edits by maintainers" is on, so it was hit the same way.Nothing else about which fork PRs we handle changes. The jobs'
if:conditions still decide eligibility (first-time contributors still need a maintainer to trigger a review), and the agents still have no shell. The newrestrict_untrusted_prsinput (defaulttrue) stays on. It only denies shell commands, and neither workflow gives the agent Bash.Surfaces
CI only. Nothing in the app, CLI, Python, web or mobile is affected.
Verification
Both workflow files parse as YAML, and
pre-commit run --all-filespasses. The real test is the next fork PR: the review should post again after this merges, becausepull_request_targetruns the workflow frommain.Summary by CodeRabbit