-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
I am trying to fetch the number of open issues using the following code in my Flask application.
g = Github()
repo = g.get_repo(repo_name)
open_pulls = repo.get_pulls(state='open')
open_pull_titles = [pull.title for pull in open_pulls]
open_issues = repo.get_issues(state='open')
open_issues = [issue for issue in open_issues if issue.title not in open_pull_titles]
and I get the error github.GithubException.RateLimitExceededException:
.
repo.get_issues()
returns the count of open issues plus pull requests.