MCPcopy
hub / github.com/AutoMaker-Org/automaker / create

Method create

apps/ui/tests/utils/api/client.ts:90–104  ·  view source on GitHub ↗

* Create a new worktree

(
    projectPath: string,
    branchName: string,
    baseBranch?: string
  )

Source from the content-addressed store, hash-verified

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

Callers 15

handleCreateSessionFunction · 0.45
SessionManagerFunction · 0.45
useSetupDialogFunction · 0.45
ProjectSwitcherFunction · 0.45
BoardViewFunction · 0.45
handleCreateProjectFunction · 0.45
AnalysisViewFunction · 0.45
GitHubIssuesViewFunction · 0.45
FileEditorViewFunction · 0.45
handleCreateFunction · 0.45
useBoardPersistenceFunction · 0.45
useBoardActionsFunction · 0.45

Calls 1

postMethod · 0.80

Tested by

no test coverage detected