Repository navigation
fix(pr): review all changed files in large PRs - #106217
Merged
Merged
Conversation
Contributor
Author
|
Land-ready proof for
Known hosted-CI gap: run 29237327268 hit TS1117 duplicate locale keys in 20 |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #105937
What Problem This Solves
Fixes an issue where maintainers reviewing PRs with more than 100 changed files could receive incomplete path metadata. During #105937,
scripts/pr review-initreported 100 files for a 342-file PR, so path-based behavioral-review guards could miss runtime files beyond the first page. The command also printed an empty PR URL.Why This Change Was Made
The PR helper now paginates the changed-files REST endpoint, preserves the existing file metadata shape, and verifies both the PR head SHA and expected file count before accepting the result. Any force-push, API cap, or incomplete page set fails closed. Review initialization prints the URL captured in the same metadata snapshot.
User Impact
No product runtime impact. Maintainers can review large PRs with complete changed-file coverage, accurate counts, and a usable PR link.
AI-assisted: yes (Codex). I reviewed the complete patch and understand the changes.
Evidence
changedFiles: 342but returned only 100 entries infiles;review-initprinted an emptypr_url.pr_meta_json 105937probe returned 342/342 paths, fromscripts/deadcode-exports.baseline.mjsthroughtest/scripts/test-live-shard.test.ts.pnpm test test/scripts/pr-metadata.test.ts— 3/3 passed on exact head05f75b8bdecc2d44c4a401193756a471b3c12eaa.bash -n scripts/pr-lib/worktree.sh scripts/pr-lib/review.shgit diff --check