From 3ebba02d04d17efaa8339d94950d1467ac5c956f Mon Sep 17 00:00:00 2001 From: Dax Date: Thu, 5 Mar 2026 21:54:06 -0500 Subject: refactor: replace Bun.sleep with node timers (#15013) --- github/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'github') diff --git a/github/index.ts b/github/index.ts index da310178a..1a0a99262 100644 --- a/github/index.ts +++ b/github/index.ts @@ -8,6 +8,7 @@ import type { Context as GitHubContext } from "@actions/github/lib/context" import type { IssueCommentEvent, PullRequestReviewCommentEvent } from "@octokit/webhooks-types" import { createOpencodeClient } from "@opencode-ai/sdk" import { spawn } from "node:child_process" +import { setTimeout as sleep } from "node:timers/promises" type GitHubAuthor = { login: string @@ -281,7 +282,7 @@ async function assertOpencodeConnected() { connected = true break } catch (e) {} - await Bun.sleep(300) + await sleep(300) } while (retry++ < 30) if (!connected) { -- cgit v1.2.3