Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix creating new ref

Tomas Valenta64aeef04bdc0
diff --git a/github/pullRequest.ts b/github/pullRequest.ts
index b4a4e51ea..aff16105a 100644
--- a/github/pullRequest.ts
+++ b/github/pullRequest.ts
@@ -29,7 +29,7 @@ export async function createPR({
const baseBranchRef = await client.git.getRef({
owner,
repo,
- ref: `refs/heads/${defaultBranch}`,
+ ref: `heads/${defaultBranch}`,
})
baseBranchRefSHA = baseBranchRef.data.object.sha
} catch (error: any) {
@@ -81,7 +81,7 @@ export async function createPR({
await client.git.updateRef({
owner,
repo,
- ref: `refs/heads/${branch}`,
+ ref: `heads/${branch}`,
sha: newCommit.data.sha,
})