fix: address pr comments

This commit is contained in:
Kacper
2026-01-11 00:01:23 +01:00
parent 861fff1aae
commit 385e7f5c1e
6 changed files with 28 additions and 40 deletions

View File

@@ -1613,7 +1613,8 @@ export class HttpApiClient implements ElectronAPI {
getPRInfo: (worktreePath: string, branchName: string) =>
this.post('/api/worktree/pr-info', { worktreePath, branchName }),
// Init script methods
getInitScript: (projectPath: string) => this.post('/api/worktree/init-script', { projectPath }),
getInitScript: (projectPath: string) =>
this.get(`/api/worktree/init-script?projectPath=${encodeURIComponent(projectPath)}`),
setInitScript: (projectPath: string, content: string) =>
this.put('/api/worktree/init-script', { projectPath, content }),
deleteInitScript: (projectPath: string) =>