diff --git a/.buildkite/scripts/pull-request/pipeline.ts b/.buildkite/scripts/pull-request/pipeline.ts index c4e12f2aa48fe..bc71fc24567e8 100644 --- a/.buildkite/scripts/pull-request/pipeline.ts +++ b/.buildkite/scripts/pull-request/pipeline.ts @@ -116,7 +116,9 @@ export const generatePipelines = ( .filter((x) => x); if (!changedFiles?.length) { - const mergeBase = execSync(`git merge-base ${process.env["GITHUB_PR_TARGET_BRANCH"]} HEAD`, { cwd: PROJECT_ROOT }) + const mergeBase = execSync(`git merge-base origin/${process.env["GITHUB_PR_TARGET_BRANCH"]} HEAD`, { + cwd: PROJECT_ROOT, + }) .toString() .trim();