Skip to content

Commit

Permalink
fix github /releases
Browse files Browse the repository at this point in the history
closes #296
  • Loading branch information
jhheider authored and mxcl committed Jan 30, 2024
1 parent f367017 commit 2950396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hooks/useGitHubAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function *getVersionsLong({ user, repo, type }: GetVersionsOptions): Async
page++
const [json, rsp] = await GET2<GHRelease[]>(`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
Expand Down

0 comments on commit 2950396

Please sign in to comment.