From 23f1f716b3d8cf2ace1c8a1680aecfe6b2185e8d Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Fri, 9 Aug 2024 09:24:50 -0700 Subject: [PATCH] List 100 GH releases per page (#957) List 100 GH tags per page --- cmd/buildtools/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/buildtools/utils.go b/cmd/buildtools/utils.go index 26adc8b4f..210321585 100644 --- a/cmd/buildtools/utils.go +++ b/cmd/buildtools/utils.go @@ -164,7 +164,7 @@ func GetLatestGitHubTag(ctx context.Context, owner, repo string) (string, error) // that matches the provided constraints. func GetGreatestGitHubTag(ctx context.Context, owner, repo string, constrants *semver.Constraints) (string, error) { client := github.NewClient(nil) - tags, _, err := client.Repositories.ListTags(ctx, owner, repo, &github.ListOptions{}) + tags, _, err := client.Repositories.ListTags(ctx, owner, repo, &github.ListOptions{PerPage: 100}) if err != nil { return "", fmt.Errorf("list tags: %w", err) }