File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed
packages/mcp-server-supabase/src/platform Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -502,39 +502,6 @@ export function createSupabaseApiPlatform(
502
502
503
503
assertSuccess ( createBranchResponse , 'Failed to create branch' ) ;
504
504
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
-
538
505
return createBranchResponse . data ;
539
506
} ,
540
507
async deleteBranch ( branchId : string ) {
You can’t perform that action at this time.
0 commit comments