Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix creating new ref
Tomas Valenta64aeef04bdc0
diff --git a/github/pullRequest.ts b/github/pullRequest.tsindex 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,})