* Create a new worktree
(
projectPath: string,
branchName: string,
baseBranch?: string
)
| 88 | * Create a new worktree |
| 89 | */ |
| 90 | async create( |
| 91 | projectPath: string, |
| 92 | branchName: string, |
| 93 | baseBranch?: string |
| 94 | ): Promise<{ response: APIResponse; data: WorktreeCreateResponse }> { |
| 95 | const response = await this.page.request.post(API_ENDPOINTS.worktree.create, { |
| 96 | data: { |
| 97 | projectPath, |
| 98 | branchName, |
| 99 | baseBranch, |
| 100 | }, |
| 101 | }); |
| 102 | const data = await response.json(); |
| 103 | return { response, data }; |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * Delete a worktree |
no test coverage detected