-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Feat: Limit the number of versions retrieved by command generate and update. Sovle issue #2355 #2447
Feat: Limit the number of versions retrieved by command generate and update. Sovle issue #2355 #2447
Conversation
…e consumption of GitHub API
…ntLimit" for avoiding ambiguity
Thank you for your contribution! |
It seems there are some errors here. |
You don't need to recreate PR. |
…on the existence of filter
Description
Additional Modification
IssueWhen using According to GitHub API Docs/Release#list-releases, the # Releases
$ curl -s "https://api.github.com/repos/cli/cli/releases?per_page=3&page=0" | grep 'tag_name'
"tag_name": "v2.38.0",
"tag_name": "v2.37.0",
"tag_name": "v2.36.0",
$ curl -s "https://api.github.com/repos/cli/cli/releases?per_page=3&page=1" | grep 'tag_name'
"tag_name": "v2.38.0",
"tag_name": "v2.37.0",
"tag_name": "v2.36.0",
$ curl -s "https://api.github.com/repos/cli/cli/releases?per_page=3&page=2" | grep 'tag_name'
"tag_name": "v2.35.0",
"tag_name": "v2.34.0",
"tag_name": "v2.33.0",
# Tags
$ curl -s "https://api.github.com/repos/golang/go/tags?per_page=3&page=0" | grep 'name'
"name": "weekly.2012-03-27",
"name": "weekly.2012-03-22",
"name": "weekly.2012-03-13",
$ curl -s "https://api.github.com/repos/golang/go/tags?per_page=3&page=1" | grep 'name'
"name": "weekly.2012-03-27",
"name": "weekly.2012-03-22",
"name": "weekly.2012-03-13",
$ curl -s "https://api.github.com/repos/golang/go/tags?per_page=3&page=2" | grep 'name'
"name": "weekly.2012-03-04",
"name": "weekly.2012-02-22",
"name": "weekly.2012-02-14", why not use
|
It looks good. Thank you! |
I've reconsidered about this and think that the 0 value for limit has no significance, so I delete the code for checking 0 value. |
Thank you! |
I'll release this by the end of the next Monday. |
aqua v2.17.0 is out 🎉 https://github.com/aquaproj/aqua/releases/tag/v2.17.0 Thank you for your contribution! |
Solve issue #2355.
Description
aqua generate
andaqua update
.--limit -1
refers to no limitation.PS: Because of
aqua update
usingversiongetter.FuzzyGetter
, so I modified theaqua update
command at the same time.Test Cases
aqua generate
aqua update