From be3fbf6b1167f428de9bbf6b96270b116f50682c Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 28 Aug 2025 06:52:56 -0400 Subject: [PATCH] sync --- github/check/check.ts | 6 +++--- github/src/opencode.ts | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/github/check/check.ts b/github/check/check.ts index 83a652bb8..e9deaf9eb 100644 --- a/github/check/check.ts +++ b/github/check/check.ts @@ -41,11 +41,11 @@ If the check passed, do not create any file. `) // parse for reason - let reason + let content try { - reason = await Bun.file(filename).text() + content = await Bun.file(filename).json() } catch (e) {} - if (reason) throw new Error(reason) + if (content) throw new Error(content.reason ?? "unknown reason") } finally { Opencode.closeServer() await Auth.revoke() diff --git a/github/src/opencode.ts b/github/src/opencode.ts index b3cb7c166..bedb7aef0 100644 --- a/github/src/opencode.ts +++ b/github/src/opencode.ts @@ -1,7 +1,6 @@ import { spawn } from "node:child_process" import { lazy } from "./lazy" import { createOpencodeClient } from "@opencode-ai/sdk" -import { Git } from "./git" import { Auth } from "./auth" export namespace Opencode {