mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
fix(infra)- Add pr number to release branches (#9506)
Co-authored-by: Shi Shu <shii@google.com>
This commit is contained in:
@@ -68,7 +68,7 @@ jobs:
|
||||
run: |
|
||||
# Capture output and display it in logs using tee
|
||||
{
|
||||
node scripts/releasing/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --dry-run=${{ github.event.inputs.dry_run }}
|
||||
node scripts/releasing/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --pullRequestNumber=${{ github.event.inputs.original_pr }} --dry-run=${{ github.event.inputs.dry_run }}
|
||||
echo "EXIT_CODE=$?" >> "$GITHUB_OUTPUT"
|
||||
} 2>&1 | tee >(
|
||||
echo "LOG_CONTENT<<EOF" >> "$GITHUB_ENV"
|
||||
|
||||
@@ -32,6 +32,11 @@ on:
|
||||
required: false
|
||||
type: 'boolean'
|
||||
default: false
|
||||
test_mode:
|
||||
description: 'Whether or not to run in test mode'
|
||||
required: false
|
||||
type: 'boolean'
|
||||
default: false
|
||||
|
||||
jobs:
|
||||
trigger-patch-release:
|
||||
@@ -68,5 +73,6 @@ jobs:
|
||||
GITHUB_EVENT_NAME: '${{ github.event_name }}'
|
||||
GITHUB_EVENT_PAYLOAD: '${{ toJSON(github.event) }}'
|
||||
FORCE_SKIP_TESTS: '${{ github.event.inputs.force_skip_tests }}'
|
||||
TEST_MODE: '${{ github.event.inputs.test_mode }}'
|
||||
run: |
|
||||
node scripts/releasing/patch-trigger.js
|
||||
node scripts/releasing/patch-trigger.js --dry-run=${{ github.event.inputs.dry_run }}
|
||||
|
||||
@@ -995,7 +995,9 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
if (streamingState === StreamingState.Idle) {
|
||||
title = originalTitleRef.current;
|
||||
} else {
|
||||
const statusText = thought?.subject?.replace(/[\r\n]+/g, ' ').substring(0, 80);
|
||||
const statusText = thought?.subject
|
||||
?.replace(/[\r\n]+/g, ' ')
|
||||
.substring(0, 80);
|
||||
title = statusText || originalTitleRef.current;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,6 +18,12 @@ async function main() {
|
||||
type: 'string',
|
||||
demandOption: true,
|
||||
})
|
||||
.option('pullRequestNumber', {
|
||||
alias: 'pr',
|
||||
description: "The pr number that we're cherry picking",
|
||||
type: 'number',
|
||||
demandOption: true,
|
||||
})
|
||||
.option('channel', {
|
||||
alias: 'ch',
|
||||
description: 'The release channel to patch.',
|
||||
@@ -32,7 +38,7 @@ async function main() {
|
||||
.help()
|
||||
.alias('help', 'h').argv;
|
||||
|
||||
const { commit, channel, dryRun } = argv;
|
||||
const { commit, channel, dryRun, pullRequestNumber } = argv;
|
||||
|
||||
console.log(`Starting patch process for commit: ${commit}`);
|
||||
console.log(`Targeting channel: ${channel}`);
|
||||
@@ -45,7 +51,7 @@ async function main() {
|
||||
const releaseInfo = getLatestReleaseInfo(channel);
|
||||
const latestTag = releaseInfo.currentTag;
|
||||
|
||||
const releaseBranch = `release/${latestTag}`;
|
||||
const releaseBranch = `release/${latestTag}-pr-${pullRequestNumber}`;
|
||||
const hotfixBranch = `hotfix/${latestTag}/${channel}/cherry-pick-${commit.substring(0, 7)}`;
|
||||
|
||||
// Create the release branch from the tag if it doesn't exist.
|
||||
|
||||
Reference in New Issue
Block a user