We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 432488d commit ded81ceCopy full SHA for ded81ce
1 file changed
src/test/integration/git.test.ts
@@ -213,10 +213,13 @@ const makeFileChanges = async (
213
214
// Push the commit with symlink to GitHub so the API can use it as base.
215
// Using native git since isomorphic-git push requires explicit auth setup.
216
+ // Note: origin points to the local clone source (process.cwd()), not GitHub,
217
+ // so we push directly to GitHub using the token.
218
+ const githubUrl = `https://x-access-token:${ENV.GITHUB_TOKEN}@github.com/${REPO.owner}/${REPO.repo}.git`;
219
await new Promise<void>((resolve, reject) => {
220
const p = execFile(
221
"git",
- ["push", "origin", `HEAD:refs/heads/${branch}`],
222
+ ["push", githubUrl, `HEAD:refs/heads/${branch}`],
223
{ cwd: repoDirectory },
224
(error) => {
225
if (error) {
0 commit comments