summaryrefslogtreecommitdiffhomepage
path: root/github
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-04-15 22:53:10 -0400
committerGitHub <[email protected]>2026-04-16 02:53:10 +0000
commit702f7412676deae8317213a56a3b32095dba5aa4 (patch)
treeb0832ab0461dd96e784b0d960b63d99a30eee1fc /github
parent665a8430864fb7a55dedea63a6cbdbe400218f80 (diff)
downloadopencode-702f7412676deae8317213a56a3b32095dba5aa4.tar.gz
opencode-702f7412676deae8317213a56a3b32095dba5aa4.zip
feat: enable oxlint suspicious category, fix 24 violations (#22727)
Diffstat (limited to 'github')
-rw-r--r--github/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/github/index.ts b/github/index.ts
index be8e5aafc..4463aa200 100644
--- a/github/index.ts
+++ b/github/index.ts
@@ -542,7 +542,7 @@ async function subscribeSessionEvents() {
? JSON.stringify(part.state.input)
: "Unknown"
console.log()
- console.log(color + `|`, "\x1b[0m\x1b[2m" + ` ${tool.padEnd(7, " ")}`, "", "\x1b[0m" + title)
+ console.log(`${color}|`, `\x1b[0m\x1b[2m ${tool.padEnd(7, " ")}`, "", `\x1b[0m${title}`)
}
if (part.type === "text") {
@@ -776,7 +776,7 @@ async function assertPermissions() {
console.log(` permission: ${permission}`)
} catch (error) {
console.error(`Failed to check permissions: ${error}`)
- throw new Error(`Failed to check permissions for user ${actor}: ${error}`)
+ throw new Error(`Failed to check permissions for user ${actor}: ${error}`, { cause: error })
}
if (!["admin", "write"].includes(permission)) throw new Error(`User ${actor} does not have write permissions`)