Attempt to make this work

This commit is contained in:
Mark Wylde
2025-05-30 20:25:16 +01:00
parent 406208cf7a
commit 9986f4d1a3

View File

@@ -94,11 +94,11 @@ export async function setupBranch(
try { try {
// Get the SHA of the source branch // Get the SHA of the source branch
// For Gitea, use just the branch name instead of heads/ prefix // For Gitea, use heads/ prefix like GitHub
const sourceBranchRef = await octokits.rest.git.getRef({ const sourceBranchRef = await octokits.rest.git.getRef({
owner, owner,
repo, repo,
ref: sourceBranch, ref: `heads/${sourceBranch}`,
}); });
const currentSHA = sourceBranchRef.data.object.sha; const currentSHA = sourceBranchRef.data.object.sha;