Repository navigation
ci: build the Claude review diff with git so large PRs get reviewed - #2488
Conversation
gh pr diff fails with HTTP 406 when a PR changes more than 300 files. MFlowCode#2486 changes 377, of which 362 are golden files under tests/ that the review discards anyway, so the job failed before Claude started and posted nothing. Fetch the PR's commits and diff them locally against the base, leaving out tests/. The commits are fetched as objects only and never checked out or run. Also run the publish step after a failed step, so a job that breaks before the review says so on the PR.
|
Claude Code Review Head SHA: 46e0506 Files changed:
Summary: The PR now builds the review diff and the changed-file list with Findings:
Coverage: I read the full post-change workflow (392 lines) and diffed it line by line against the base copy. The only changes are the four hunks in
History and tooling I traced:
Candidates I checked and dropped:
There is no linked issue; the PR cites the failed run on #2486. CI checks for this PR were still pending when I looked. |
Summary
The Claude review failed on #2486 before Claude started (run):
#2486 changes 377 files. 362 of them are golden files under
tests/, which the review leaves out, but the filter ran aftergh pr diffhad fetched the whole diff. Any PR that regenerates more than about 300 golden files hits this. The PR got a red check and no comment.Changes
git diff base...head -- . ':(exclude)tests'after fetchingrefs/pull/<n>/head. This has no file limit. The PR's commits are fetched as objects only; nothing from them is checked out or run.Testing
A
pull_request_targetworkflow runs the base branch's copy, so this PR cannot exercise its own change. The new step was extracted from the YAML and run locally on a full clone:tests/, a 436-line diff with notests/hunks. The file list equals the non-tests/entries from the list-files API.gh pr diffoutput filtered the old way, apart from the abbreviation length of theindexlines.After merge, #2486 needs the
claude-full-reviewlabel to get its review.