yuqi1129 opened a new pull request, #15068: URL: https://github.com/apache/gravitino/pull/15068
### What changes were proposed in this pull request? When a fork push has no open PR and multiple candidate bases have the same `ahead_by` count, prefer the candidate with the lowest `behind_by` count. ### Why are the changes needed? The first push for #15047 was one commit ahead of both `main` and `branch-2.0`, but it was 13 commits behind `main` and zero behind `branch-2.0`. Fork CI selected `main`, where the patch had already landed. The resulting empty diff caused the full build to be skipped. ### Does this PR introduce _any_ user-facing change? No. This change only affects Fork CI base selection before a PR is opened. ### How was this patch tested? Ran `node --test .github/scripts/tests/fork-ci.test.cjs`. All 142 tests passed. The regression test uses the commit counts from #15047 and fails with the previous implementation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
