Check GitHub REST API rate limit status
The authoritative source for current rate limit status is the
x-ratelimit-* response headers returned with every API request. For a periodic overview of all resource families for an authenticated user, you can call the GET /rate_limit endpoint. Note that calling GET /rate_limit does not count against your primary rate limit, but may count against your secondary rate limit.