Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The search result total_count is always 0 #1111

Open
theoctober19th opened this issue Sep 28, 2022 · 0 comments
Open

The search result total_count is always 0 #1111

theoctober19th opened this issue Sep 28, 2022 · 0 comments

Comments

@theoctober19th
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant