node-gh / gh

(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
http://nodegh.io
Other
1.71k stars 217 forks source link

Support pagination with Github API for the Repo command #539

Closed m-roberts closed 6 years ago

m-roberts commented 6 years ago

This is a more generic issue relating to #438.

Currently, gh uses per_page: 1000 in a few places, but the API only supports 100 responses per page.

GitHub expects you to use the metadata supplied by the API to get all the pages using consecutive calls.

gh should handle multiple API requests, as needed, so that the --all flag actually makes sense.