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 · simonklee/opencode@e4d3b96

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • script
    • beta.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎script/beta.ts‎

Copy file name to clipboardExpand all lines: script/beta.ts
+9-4Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,17 @@ async function main() {
106106
}
107107

108108
const commitMsg = `Apply PR #${pr.number}: ${pr.title}`
109-
const commit = await $`git commit -m ${commitMsg}`.nothrow()
110-
if (commit.exitCode !== 0) {
111-
console.log(` Failed to commit: ${commit.stderr}`)
109+
const commit = await Bun.spawn(["git", "commit", "-m", commitMsg], {
110+
stdout: "pipe",
111+
stderr: "pipe",
112+
})
113+
const commitExit = await commit.exited
114+
const commitStderr = await Bun.readableStreamToText(commit.stderr)
115+
if (commitExit !== 0) {
116+
console.log(` Failed to commit: ${commitStderr}`)
112117
await $`git checkout -- .`.nothrow()
113118
await $`git clean -fd`.nothrow()
114-
skipped.push({ number: pr.number, reason: `Commit failed: ${commit.stderr}` })
119+
skipped.push({ number: pr.number, reason: `Commit failed: ${commitStderr}` })
115120
continue
116121
}
117122

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.