Attempt to make this work

This commit is contained in:
Mark Wylde
2025-05-30 20:20:51 +01:00
parent 6410e33591
commit 406208cf7a

View File

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