Skip to content

Cross-referenced events are not included in get_timeline() #2978

@jblorenzo

Description

@jblorenzo
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)

This prints

2

But if you go to https://api.github.com/repos/arachnys/cabot/issues/624/timeline

There's 3 events. The one with "cross-referenced" is not returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions