The import-hoist safety step built its changed-file list with a two-dot diff against the base branch tip on a shallow clone. Once the base branch moves past a PR's branch point, that diff includes every file the base changed since, and the verifier compares newer base code (BEFORE) against the PR's older snapshot (AFTER). This time-reversed comparison reports the base branch's own refactors as blockers on PRs that never touched those files, forcing branch updates or admin merges. Resolve the true merge-base through the compare API, fetch that single commit by SHA (clone stays shallow), and use it for both the file list and --before. Verified against the PR 6137 failure: with the base tip the step flags studio files from a later main commit; with the merge-base the file list contains only the PR's own files and the verifier passes. |
||
|---|---|---|
| .. | ||
| ISSUE_TEMPLATE | ||
| scripts | ||
| workflows | ||
| CODEOWNERS | ||
| dependabot.yml | ||
| FUNDING.yml | ||