Skip to content

Commit 23f1f71

Browse files
authored
List 100 GH releases per page (#957)
List 100 GH tags per page
1 parent 917ecae commit 23f1f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/buildtools/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func GetLatestGitHubTag(ctx context.Context, owner, repo string) (string, error)
164164
// that matches the provided constraints.
165165
func GetGreatestGitHubTag(ctx context.Context, owner, repo string, constrants *semver.Constraints) (string, error) {
166166
client := github.NewClient(nil)
167-
tags, _, err := client.Repositories.ListTags(ctx, owner, repo, &github.ListOptions{})
167+
tags, _, err := client.Repositories.ListTags(ctx, owner, repo, &github.ListOptions{PerPage: 100})
168168
if err != nil {
169169
return "", fmt.Errorf("list tags: %w", err)
170170
}

0 commit comments

Comments
 (0)