Rename branch (#199)

This is more important now that import app is available and not every
git repo will be initialized with `main` as the default branch. This
handles the other common case which is the `master` branch.
This commit is contained in:
Will Chen
2025-05-19 14:41:18 -07:00
committed by GitHub
parent bc8166c274
commit cbfe26bac1
6 changed files with 154 additions and 10 deletions

View File

@@ -29,6 +29,7 @@ import type {
ApproveProposalResult,
ImportAppResult,
ImportAppParams,
RenameBranchParams,
} from "./ipc_types";
import type { ProposalResult } from "@/lib/schemas";
import { showError } from "@/lib/toast";
@@ -816,4 +817,8 @@ export class IpcClient {
}): Promise<{ exists: boolean }> {
return this.ipcRenderer.invoke("check-app-name", params);
}
public async renameBranch(params: RenameBranchParams): Promise<void> {
await this.ipcRenderer.invoke("rename-branch", params);
}
}