summaryrefslogtreecommitdiffhomepage
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/sync-zed.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/sync-zed.ts b/script/sync-zed.ts
index 3ac9ee83a..4bbf84546 100755
--- a/script/sync-zed.ts
+++ b/script/sync-zed.ts
@@ -107,7 +107,9 @@ async function main() {
console.log(`📬 Creating pull request...`)
const prUrl =
- await $`GH_TOKEN=${token} gh pr create --repo ${UPSTREAM_REPO} --base main --head ${FORK_REPO.split("/")[0]}:${branchName} --title "Update ${EXTENSION_NAME} to v${cleanVersion}" --body "Updating OpenCode extension to v${cleanVersion}"`.text()
+ await $`gh pr create --repo ${UPSTREAM_REPO} --base main --head ${FORK_REPO.split("/")[0]}:${branchName} --title "Update ${EXTENSION_NAME} to v${cleanVersion}" --body "Updating OpenCode extension to v${cleanVersion}"`
+ .env({ GH_TOKEN: token })
+ .text()
console.log(`✅ Pull request created: ${prUrl}`)
console.log(`🎉 Done!`)