Always prepare branch for version (#729)

* Always prepare branch for version

* Update test
This commit is contained in:
Bjorn Lu
2026-08-31 08:18:49 +00:00
committed by GitHub
parent 36f529f13a
commit ca8589735a
3 changed files with 28 additions and 13 deletions
-4
View File
@@ -235,10 +235,6 @@ export class GitHub {
}
async prepareBranch(branch: string) {
if (!this.pushWithGitCli) {
// Preparing a new local branch is not necessary when using the API
return;
}
await switchToMaybeExistingBranch(branch, { cwd: this.cwd });
await reset(context.sha, { cwd: this.cwd });
}