From 3be302afe321158b730d3ca87f337411e4617d4f Mon Sep 17 00:00:00 2001 From: Christian Gunderman Date: Mon, 2 Mar 2026 15:46:34 -0800 Subject: [PATCH] Update scripts/changed_prompt.js Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- scripts/changed_prompt.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/changed_prompt.js b/scripts/changed_prompt.js index 90c8638cb4..69ef2e0eaf 100644 --- a/scripts/changed_prompt.js +++ b/scripts/changed_prompt.js @@ -11,9 +11,10 @@ const EVALS_FILE_PREFIXES = [ ]; function main() { + const targetBranch = process.env.GITHUB_BASE_REF || 'main'; try { - // Fetch main branch from origin. - execSync('git fetch origin main', { + // Fetch target branch from origin. + execSync(`git fetch origin ${targetBranch}`, { stdio: 'ignore', });