GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci: improve err msg · land007/opencode@1da3550

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • script
    • sync-zed.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎script/sync-zed.ts‎

Copy file name to clipboardExpand all lines: script/sync-zed.ts
+8-2Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,17 @@ async function main() {
106106
await $`git push https://x-access-token:${token}@github.com/${FORK_REPO}.git ${branchName}`
107107

108108
console.log(`📬 Creating pull request...`)
109-
const prUrl =
109+
const prResult =
110110
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}"`
111111
.env({ GH_TOKEN: token })
112-
.text()
112+
.nothrow()
113113

114+
if (prResult.exitCode !== 0) {
115+
console.error("stderr:", prResult.stderr.toString())
116+
throw new Error(`Failed with exit code ${prResult.exitCode}`)
117+
}
118+
119+
const prUrl = prResult.stdout.toString().trim()
114120
console.log(`✅ Pull request created: ${prUrl}`)
115121
console.log(`🎉 Done!`)
116122
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.