* Delete a worktree
(
projectPath: string,
worktreePath: string,
deleteBranch: boolean = true
)
| 107 | * Delete a worktree |
| 108 | */ |
| 109 | async delete( |
| 110 | projectPath: string, |
| 111 | worktreePath: string, |
| 112 | deleteBranch: boolean = true |
| 113 | ): Promise<{ response: APIResponse; data: WorktreeDeleteResponse }> { |
| 114 | const response = await this.page.request.post(API_ENDPOINTS.worktree.delete, { |
| 115 | data: { |
| 116 | projectPath, |
| 117 | worktreePath, |
| 118 | deleteBranch, |
| 119 | }, |
| 120 | }); |
| 121 | const data = await response.json(); |
| 122 | return { response, data }; |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * List all worktrees |
no test coverage detected