summaryrefslogtreecommitdiffhomepage
path: root/script/sync-zed.ts
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-26 12:22:56 -0600
committerAiden Cline <[email protected]>2025-12-26 12:22:56 -0600
commit053a10e5155bb6a18765aceddc70599a6359e6c1 (patch)
tree976bf90199cd83ef8ba3f1bf3cc326062a3f6356 /script/sync-zed.ts
parente1c1b1340b4c0c455f7701311118cf32924e9abd (diff)
downloadopencode-053a10e5155bb6a18765aceddc70599a6359e6c1.tar.gz
opencode-053a10e5155bb6a18765aceddc70599a6359e6c1.zip
ci: fix token for gh
Diffstat (limited to 'script/sync-zed.ts')
-rwxr-xr-xscript/sync-zed.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/sync-zed.ts b/script/sync-zed.ts
index b4a417ad8..3ac9ee83a 100755
--- a/script/sync-zed.ts
+++ b/script/sync-zed.ts
@@ -107,7 +107,7 @@ async function main() {
console.log(`📬 Creating pull request...`)
const prUrl =
- 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}"`.text()
+ 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()
console.log(`✅ Pull request created: ${prUrl}`)
console.log(`🎉 Done!`)