parent
9597c73f2b
commit
9f2c541ab0
1 changed files with 17 additions and 17 deletions
|
@ -47,8 +47,8 @@ def main(
|
||||||
# GitHub Workflow will pass in the token as an environment variable,
|
# GitHub Workflow will pass in the token as an environment variable,
|
||||||
# but we can place it in our env when running the script locally, for convenience
|
# but we can place it in our env when running the script locally, for convenience
|
||||||
github_token = github_token or os.getenv("GITHUB_ACCESS_TOKEN")
|
github_token = github_token or os.getenv("GITHUB_ACCESS_TOKEN")
|
||||||
github = Github(github_token)
|
|
||||||
|
|
||||||
|
with Github(github_token, per_page=100) as github:
|
||||||
remaining_requests_before: int = github.rate_limiting[0]
|
remaining_requests_before: int = github.rate_limiting[0]
|
||||||
print(f"Remaining requests before: {remaining_requests_before}")
|
print(f"Remaining requests before: {remaining_requests_before}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue