mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-20 01:12:15 +00:00
fix: github stats
This commit is contained in:
parent
006cb5b36d
commit
79764c8c4c
1 changed files with 2 additions and 12 deletions
|
|
@ -8,18 +8,8 @@ export const github = query(async () => {
|
|||
}
|
||||
try {
|
||||
const [meta, releases, contributors] = await Promise.all([
|
||||
fetch("https://api.github.com/repos/sst/opencode", { headers }).then(async (res) => {
|
||||
const text = await res.text()
|
||||
console.log(text)
|
||||
const json = JSON.parse(text)
|
||||
return json
|
||||
}),
|
||||
fetch("https://api.github.com/repos/sst/opencode/releases", { headers }).then(async (res) => {
|
||||
const text = await res.text()
|
||||
console.log(text)
|
||||
const json = JSON.parse(text)
|
||||
return json
|
||||
}),
|
||||
fetch("https://api.github.com/repos/sst/opencode", { headers }).then((res) => res.json()),
|
||||
fetch("https://api.github.com/repos/sst/opencode/releases", { headers }).then((res) => res.json()),
|
||||
fetch("https://api.github.com/repos/sst/opencode/contributors?per_page=1", { headers }),
|
||||
])
|
||||
const [release] = releases
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue