sigmavirus24/github3.py

The search result `total_count` is always 0

theoctober19th opened this issue · 0 comments

I'm trying to use GitHub3.py to find the number of total issues in a repository. For that, I want to use the Search API to search for the issues in a particular repository.

For example, with the raw GitHub API, I can request https://api.github.com/search/issues?q=repo%3Asigmavirus24/github3.py and then get the total issues count in "total_count" key.

However, the following code snippet gives me zero:

gh = login(token=API_TOKEN)
count = gh.search_issues(query="repo: sigmavirus24/github3.py").total_count
print(count)
# 0