From 64008ba3499d2e3f6860ff0f2a84c9b709e7887c Mon Sep 17 00:00:00 2001 From: matt korwel Date: Thu, 25 Sep 2025 20:49:23 -0700 Subject: [PATCH] Update scripts/releasing/create-patch-pr.js --- scripts/releasing/create-patch-pr.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/releasing/create-patch-pr.js b/scripts/releasing/create-patch-pr.js index d58ed2265b..f9b17c28d6 100644 --- a/scripts/releasing/create-patch-pr.js +++ b/scripts/releasing/create-patch-pr.js @@ -214,9 +214,11 @@ The commit has been created with conflict markers for easier manual resolution. } const prCommand = `gh pr create --base ${releaseBranch} --head ${hotfixBranch} --title "${prTitle}" --body "${prBody}"`; - run(prCommand, dryRun, { - env: { GH_TOKEN: process.env.GEMINI_CLI_ROBOT_GITHUB_PAT }, - }); + // Temporarily set the environment variable for the gh command. + process.env.GH_TOKEN = process.env.GEMINI_CLI_ROBOT_GITHUB_PAT; + run(prCommand, dryRun); + // Unset the environment variable to avoid side effects. + delete process.env.GH_TOKEN; if (hasConflicts) { console.log(