github3.py icon indicating copy to clipboard operation
github3.py copied to clipboard

The search result `total_count` is always 0

Open theoctober19th opened this issue 3 years ago • 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

theoctober19th avatar Sep 28 '22 14:09 theoctober19th