summaryrefslogtreecommitdiffhomepage
path: root/.opencode/tool/github-pr-search.ts
diff options
context:
space:
mode:
Diffstat (limited to '.opencode/tool/github-pr-search.ts')
-rw-r--r--.opencode/tool/github-pr-search.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/.opencode/tool/github-pr-search.ts b/.opencode/tool/github-pr-search.ts
index 927e68fd7..8bc8c554a 100644
--- a/.opencode/tool/github-pr-search.ts
+++ b/.opencode/tool/github-pr-search.ts
@@ -7,7 +7,7 @@ async function githubFetch(endpoint: string, options: RequestInit = {}) {
Authorization: `Bearer ${process.env.GITHUB_TOKEN}`,
Accept: "application/vnd.github+json",
"Content-Type": "application/json",
- ...options.headers,
+ ...(options.headers instanceof Headers ? Object.fromEntries(options.headers.entries()) : options.headers),
},
})
if (!response.ok) {