Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1 - add --rate-limit command #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GregSutcliffe
Copy link

This is my first pass at any real Python, so go easy ;)

Simple switch to show the current status of the GitHub API. Example output:

greg@bicho$ pullpo -u root -p 12345678 -d pullpo --gh-token 1234 owner repo --rate-limit
Remaining rate limit requests: 5000
Rate limit requests reset at:  2016-05-26 14:07:04

Sadly, although this does not need to query the db or a repo, I'm struggling to make the other arguments optional. This is not a major issue, since you're usually querying the API as part of a wider Pullpo update, so simply adding --rate-limit to a command from your history is enough.

Adds a --rate-limit switch which simply queries the remaining API
requests for the specified login/token and displays it along with the
time of the next reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant