Skip to content

Commit

Permalink
List 100 GH releases per page (#957)
Browse files Browse the repository at this point in the history
List 100 GH tags per page
  • Loading branch information
sgalsaleh authored Aug 9, 2024
1 parent 917ecae commit 23f1f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/buildtools/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 23f1f71

Please sign in to comment.