From 0d57e3501a4ba4679aef6657a378db0158e9b1a2 Mon Sep 17 00:00:00 2001 From: Alex Blank Date: Sun, 24 May 2026 09:21:50 +0000 Subject: [PATCH] feat: add newBranch parameter to createInstance --- apps/web/src/api/sessions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/api/sessions.ts b/apps/web/src/api/sessions.ts index a4e33a9..04c570d 100644 --- a/apps/web/src/api/sessions.ts +++ b/apps/web/src/api/sessions.ts @@ -47,7 +47,8 @@ export async function createInstance( toolTypeId: string, displayName?: string, cloneMode?: string, - branch?: string + branch?: string, + newBranch?: string ): Promise { const response = await apiClient.post( `/projects/${projectId}/repositories/${repoId}/instances`, @@ -56,6 +57,7 @@ export async function createInstance( display_name: displayName, clone_mode: cloneMode || "mount", branch: branch || undefined, + new_branch: newBranch || undefined, } ); return response.data;