mirror of
https://github.com/markwylde/claude-code-gitea-action.git
synced 2026-02-20 02:22:49 +08:00
Attempt to make this work
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user