Skip to content

Commit

Permalink
use api_rate_limits to slow down things
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 4, 2024
1 parent a841669 commit 2565f2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions create-gh-issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import sys, re
from argparse import ArgumentParser
from _py2with3compatibility import run_cmd, quote
from github_utils import api_rate_limits
SCRIPT_DIR = dirname(abspath(sys.argv[0]))
Expand Down Expand Up @@ -63,7 +64,9 @@
sys.path.insert(0, repo_dir)
import repo_config
print("Using GH token from: ",repo_config.GH_TOKEN)
gh = Github(login_or_token=open(expanduser(repo_config.GH_TOKEN)).read().strip())
api_rate_limits(gh)
gh_repo = gh.get_repo(args.repo)
print("Authentication succeeded to " + str(gh_repo))
cmd = (
Expand Down

0 comments on commit 2565f2f

Please sign in to comment.