From 295039618ba2d7278905f41c83768d8514ebb6ec Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 30 Jan 2024 15:33:50 -0500 Subject: [PATCH] fix github `/releases` closes #296 --- lib/hooks/useGitHubAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hooks/useGitHubAPI.ts b/lib/hooks/useGitHubAPI.ts index ac258f62..8eab57fd 100644 --- a/lib/hooks/useGitHubAPI.ts +++ b/lib/hooks/useGitHubAPI.ts @@ -64,7 +64,7 @@ async function *getVersionsLong({ user, repo, type }: GetVersionsOptions): Async page++ const [json, rsp] = await GET2(`https://api.github.com/repos/${user}/${repo}/releases?per_page=100&page=${page}`) if (!isArray(json)) throw new Error("unexpected json") - for (const {tag_name, created_at, prerelease} of json) { + for (const {name, tag_name, created_at, prerelease} of json) { if (prerelease) { console.debug("ignoring prerelease", tag_name) continue