from github import Github
from github import Auth
auth = Auth.Token("your token")
g = Github(auth=auth)
repo_path = "arachnys/cabot"
repo = g.get_repo(repo_path)
issue = repo.get_issue(624)
timeline = issue.get_timeline()
print(timeline.totalCount)
There's 3 events. The one with "cross-referenced" is not returned.