Feature: method to query rate_limit
jjatria opened this issue · comments
José Joaquín Atria commented
Pithub does not currently have a method to query the current API rate_limit for the authentication method in use.
A rate_limit
method could be added to Pithub::Base
that used request
method to call the rate limit endpoint. This would enable any Pithub object to get information on the rate limit for whatever authentication method was active for that object.
An initial implementation of this feature is already in place in a local branch. If this seems OK, I'd be happy to submit a PR for this to be added.
Olaf Alders commented
Looks good!