Skip to content

Commit d0c7fe4

Browse files
authored
Merge pull request #88 from supabase-community/fix-todo
fix: clean up branching todo
2 parents 7837ce0 + 923cce5 commit d0c7fe4

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

packages/mcp-server-supabase/src/platform/api-platform.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -502,39 +502,6 @@ export function createSupabaseApiPlatform(
502502

503503
assertSuccess(createBranchResponse, 'Failed to create branch');
504504

505-
// Creating a default branch means we just enabled branching
506-
// TODO: move this logic to API eventually.
507-
if (createBranchResponse.data.is_default) {
508-
await managementApiClient.PATCH('/v1/branches/{branch_id}', {
509-
params: {
510-
path: {
511-
branch_id: createBranchResponse.data.id,
512-
},
513-
},
514-
body: {
515-
branch_name: 'main',
516-
},
517-
});
518-
519-
const response = await managementApiClient.POST(
520-
'/v1/projects/{ref}/branches',
521-
{
522-
params: {
523-
path: {
524-
ref: projectId,
525-
},
526-
},
527-
body: {
528-
branch_name: name,
529-
},
530-
}
531-
);
532-
533-
assertSuccess(response, 'Failed to create branch');
534-
535-
return response.data;
536-
}
537-
538505
return createBranchResponse.data;
539506
},
540507
async deleteBranch(branchId: string) {

0 commit comments

Comments
 (0)