librariesio / libraries.io

:books: The Open Source Discovery Service
https://libraries.io
GNU Affero General Public License v3.0
1.1k stars 204 forks source link

Fetch graphql rate limits from same request as rest limits #3233

Closed macowie closed 8 months ago

macowie commented 8 months ago

Octokit hides the full details we can get from this endpoint, but we can inspect the full response and check a token's rate limit for both REST and GraphQL from the same request.

This means we don't have to involve both APIs just for checking if a token can be used, and cut down some code paths.