Skip to content

Instantly share code, notes, and snippets.

@michaeldorner
Last active July 18, 2022 12:45
Show Gist options
  • Save michaeldorner/65370f19b8ba0b9904cf81f949ef7068 to your computer and use it in GitHub Desktop.
Save michaeldorner/65370f19b8ba0b9904cf81f949ef7068 to your computer and use it in GitHub Desktop.
For Ehsan
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