Last active
July 18, 2022 12:45
-
-
Save michaeldorner/65370f19b8ba0b9904cf81f949ef7068 to your computer and use it in GitHub Desktop.
For Ehsan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from agithub.GitHub import GitHub | |
import pandas as pd | |
token = "" | |
client = GitHub(token=token, paginate=True) | |
for repo in ['echarts']: | |
status, issues = client.repos['apache'][repo].issues.get(state='open') | |
assert status==200, str(status) | |
print(len(issues)) | |
status, pulls = client.repos['apache'][repo].pulls.get(state='open') | |
assert status==200, str(status) | |
print(len(pulls)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment