[Feature] Improve Github.ListStargazers Pagination #135
Labels
new contributor friendly
type: feature
For backward-compatible new feature that will result in a minor version increment
Description
The
Github.ListStargazers
tool paginates through stargazers in quantities of 100. The current algorithm for paginating allows for the number of stargazers to temporarily exceed thelimit
input parameter before returning the list. Improving this tool to never exceed the limit will help with performance.Implementation Strategy
In this file, we could keep track of the remaining number of stargazers to get. We could then set the
per_page
param to be themin(per_page, remaining)
.Use Case
Reduces data transmitted over the wire.
The text was updated successfully, but these errors were encountered: