From 2f36d061b346ec300df5fbac83d34628c268ce40 Mon Sep 17 00:00:00 2001 From: Mark Wylde Date: Fri, 30 May 2025 20:34:43 +0100 Subject: [PATCH] Attempt to make this work --- src/github/operations/branch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github/operations/branch.ts b/src/github/operations/branch.ts index 129e412..bfcd90e 100644 --- a/src/github/operations/branch.ts +++ b/src/github/operations/branch.ts @@ -132,7 +132,7 @@ export async function setupBranch( console.log(`git createRef failed, trying branches endpoint: ${createRefError.message}`); // Use Gitea's branch creation endpoint - const response = await octokits.request('POST /repos/{owner}/{repo}/branches', { + const response = await octokits.rest.request('POST /repos/{owner}/{repo}/branches', { owner, repo, new_branch_name: newBranch,