You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: pr-status reads at most 100 changed files, so a moved base's overlap with a large PR can be missed #4114
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: fixSomething is broken and must behave the way it is documented.
scripts/pr-status.ts reads a pull request's changed files with gh pr view <pr> --json ...,files,... (scripts/pr-status.ts:94-95) and uses the list to report which files a moved base gained that the pull request also changes (baseGained.overlapsThisPr, scripts/pr-status.ts:152-153).
gh pr view --json files returns at most 100 files. Observed with gh 2.103.3 on merged PR #3979, which changed 487 files: gh pr list --json changedFiles reported 487 and gh pr view 3979 --json files --jq '.files|length' printed 100.
On a pull request that changes more than 100 files, overlapsThisPr can therefore miss a real overlap and read as "the base moved, but not under this PR".
Scope
Read the complete changed-file list in scripts/pr-status.ts, or report that the list is incomplete when changedFiles exceeds the number of files returned, so that an empty overlapsThisPr is never read as "no overlap" on a truncated list.
Out of scope
scripts/integrate.ts and scripts/review-receipt.ts: they read the Git diff, not this list.
Any other field pr-status prints.
Acceptance criteria
For a pull request whose changed-file count exceeds what one gh pr view --json files call returns, pr-status --expect-base either names every overlapping file or states that the overlap list is incomplete. A test in scripts/skill-tests/pr-status.test.ts fails before the change.
A pull request with 100 files or fewer prints the same output as today.
Verification
bun run test:skills
Contract impact
None. Repository tooling only.
2026-11-17 triage at main 9e7429a91: re-pointed the gh pr view call and the overlapsThisPr line to their current positions. Re-observed the limit with gh 2.103.3: gh pr view 3979 --json files,changedFiles still returns 100 files against changedFiles 487.
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: fixSomething is broken and must behave the way it is documented.
Activity
schlessera commentedon Nov 17, 2026
Claimed for implementation. Claim token:
claim-c3e81ead. Branch:fix/4114-pr-status-complete-files.no path collisions on scripts/pr-status.ts or its test; closure-only reports from open drafts
chore(ci): refresh the reviewed unit weights and read the complete ch…