Update scripts/releasing/create-patch-pr.js

This commit is contained in:
matt korwel
2025-09-25 20:49:23 -07:00
committed by GitHub
parent 36cf4e97da
commit 64008ba349

View File

@@ -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(