Skip to content

chore(release): avoid checkout in create-release-branch#3878

Closed
rickeylev wants to merge 2 commits into
bazel-contrib:mainfrom
rickeylev:fix-create-branch-no-checkout
Closed

chore(release): avoid checkout in create-release-branch#3878
rickeylev wants to merge 2 commits into
bazel-contrib:mainfrom
rickeylev:fix-create-branch-no-checkout

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

This change refactors the create-release-branch subcommand to push the commit SHA directly to the remote branch reference, avoiding checking out the branch locally and changing the working directory state. Tests are updated to match.

This change refactors the create-release-branch subcommand to push the commit SHA directly to the remote branch reference, avoiding checking out the branch locally and changing the working directory state. Tests are updated to match.
@rickeylev rickeylev requested a review from aignas as a code owner July 1, 2026 02:39

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request simplifies the release branch creation process in create_release_branch.py by pushing the target commit directly to the remote branch using a refspec (commit_sha:refs/heads/branch_name), rather than performing local checkouts and merges. The corresponding unit tests in release_test.py have been updated to assert this new behavior. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@rickeylev rickeylev force-pushed the fix-create-branch-no-checkout branch from 7ad0c94 to 2726e23 Compare July 1, 2026 03:02
@rickeylev rickeylev closed this Jul 1, 2026
@rickeylev rickeylev deleted the fix-create-branch-no-checkout branch July 1, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant