You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clarify how itemTypes affects PullRequestTimelineItemsConnection counts #47100
What part(s) of the article would you like to see updated?
When fetching commits and comments from a pull request timeline, we need to know how many selected items to expect. The reference describes totalCount as the connection's item count, but it includes event types excluded by itemTypes in the example below. In that result, filteredCount and pageCount both return 1, matching the single selected item. Neither description mentions item-type filtering.
Could you clarify which counts apply itemTypes filtering and what totalCount represents when that argument is set?
Additional information
Reproduced on GitHub.com GraphQL API on November 27, 2026, against public octocat/Spoon-Knife#42474.
For comparison, querying Issue.timelineItems on cli/cli#6508 with itemTypes:[ISSUE_COMMENT] reduces totalCount from 6 to 2, matching the two returned comments. Both connections use the same wording for totalCount.
Activity