From decb9d7f11bb0f9d3997993a47f831bad95222ca Mon Sep 17 00:00:00 2001 From: xushiwei Date: Sat, 10 May 2025 11:27:50 +0800 Subject: [PATCH] github api: EnumTags --- internal/github/tag.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/github/tag.go b/internal/github/tag.go index bf046c8b..04d464c0 100644 --- a/internal/github/tag.go +++ b/internal/github/tag.go @@ -72,11 +72,7 @@ func EnumTags(pkgPath string, page int, pager func(tags []*Tag, page, total int) ubase := tagsURL(pkgPath) loop: - u := ubase - if page > 0 { - vals := url.Values{"page": []string{strconv.Itoa(page + 1)}} - u += "?" + vals.Encode() - } + u := ubase + "?per_page=100&page=" + strconv.Itoa(page+1) resp, err := http.Get(u) if err != nil { return