Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieving more than 100 milestones #27

Open
ciscorucinski opened this issue Aug 20, 2023 · 0 comments
Open

Retrieving more than 100 milestones #27

ciscorucinski opened this issue Aug 20, 2023 · 0 comments

Comments

@ciscorucinski
Copy link

Is your feature request related to a problem? Please describe.
There is no clean, idiomatic way to grab all the milestones from a repo. First is always applied, and it needs to be overwritten; however, it cannot go over a value of 100 without erroring.

Is this limit due to GitHub CLI? Is it still a real limit? Is there any way to paginate and append all the results together? I know the GitHub API has a paginate flag. Currently, I have abandoned using this extension due to this limit.

Describe the solution you'd like

  • gh milestone list --all - This is very idiomatic and describes what is wanted clearly.
  • gh milestone list - This is very idiomatic and describes what is wanted clearly. I don't specify a limit, so it isn't limited.

Describe alternatives you've considered

  • gh milesone list --first 99999 - Set First to some arbitrarily large number.
  • gh milesone list --first 0 - Set First to zero. Instead of returning no milestones, this would default to Int.max
  • gh milesone list --first -1 - Set First to negative one. I think the codebase requires a positive int, though. However, it's the same idea as setting it to zero.

However, setting values above 100 results in an error...
Requesting 99999 records on the `milestones` connection exceeds the `first` limit of 100 records.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant