diff options
| author | Kit Langton <[email protected]> | 2026-04-15 23:50:50 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-16 03:50:50 +0000 |
| commit | bd2900483150d690acdc53acb37e98eda7bb7fe5 (patch) | |
| tree | e65c81f8f2bf70fcf6eb9a4a41732da8933f9f9f /.opencode | |
| parent | 8aa0f9fe9515ba0234ab6a0a58c868068913bb05 (diff) | |
| download | opencode-bd2900483150d690acdc53acb37e98eda7bb7fe5.tar.gz opencode-bd2900483150d690acdc53acb37e98eda7bb7fe5.zip | |
feat: enable type-aware no-misused-spread rule, fix 8 violations (#22749)
Diffstat (limited to '.opencode')
| -rw-r--r-- | .opencode/tool/github-pr-search.ts | 2 | ||||
| -rw-r--r-- | .opencode/tool/github-triage.ts | 2 |
2 files changed, 2 insertions, 2 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) { diff --git a/.opencode/tool/github-triage.ts b/.opencode/tool/github-triage.ts index c06d2407f..dcbfc8d05 100644 --- a/.opencode/tool/github-triage.ts +++ b/.opencode/tool/github-triage.ts @@ -28,7 +28,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) { |
