summaryrefslogtreecommitdiffhomepage
path: root/github
diff options
context:
space:
mode:
Diffstat (limited to 'github')
-rw-r--r--github/index.ts3
1 files changed, 2 insertions, 1 deletions
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) {