summaryrefslogtreecommitdiffhomepage
path: root/script
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2026-01-30 10:28:12 -0500
committerDax Raad <[email protected]>2026-01-30 10:28:12 -0500
commite4d3b961cd2217e19cd44f6b97dd92b485966afb (patch)
treef076aa9e57303ce7d4fd1f7c70ade13d3a8b37ad /script
parent9cf3e651ca7bb1a7e28f3590fa846cf79bffa129 (diff)
downloadopencode-e4d3b961cd2217e19cd44f6b97dd92b485966afb.tar.gz
opencode-e4d3b961cd2217e19cd44f6b97dd92b485966afb.zip
ci
Diffstat (limited to 'script')
-rwxr-xr-xscript/beta.ts13
1 files changed, 9 insertions, 4 deletions
diff --git a/script/beta.ts b/script/beta.ts
index 5cbdbfb55..92625a854 100755
--- a/script/beta.ts
+++ b/script/beta.ts
@@ -106,12 +106,17 @@ async function main() {
}
const commitMsg = `Apply PR #${pr.number}: ${pr.title}`
- const commit = await $`git commit -m ${commitMsg}`.nothrow()
- if (commit.exitCode !== 0) {
- console.log(` Failed to commit: ${commit.stderr}`)
+ const commit = await Bun.spawn(["git", "commit", "-m", commitMsg], {
+ stdout: "pipe",
+ stderr: "pipe",
+ })
+ const commitExit = await commit.exited
+ const commitStderr = await Bun.readableStreamToText(commit.stderr)
+ if (commitExit !== 0) {
+ console.log(` Failed to commit: ${commitStderr}`)
await $`git checkout -- .`.nothrow()
await $`git clean -fd`.nothrow()
- skipped.push({ number: pr.number, reason: `Commit failed: ${commit.stderr}` })
+ skipped.push({ number: pr.number, reason: `Commit failed: ${commitStderr}` })
continue
}