cli/pkg/cmd/pr/view/fixtures
Kynan Ware 7477bdb690 refactor(pr status): remove ChecksStatus slow path
All supported GHES versions (3.16 through 3.20) support the
checkRunCountsByState and statusContextCountsByState fields on
StatusCheckRollupContextConnection. The slow path that iterated
individual CheckContext nodes in ChecksStatus() is dead code.

This commit:

- Removes the slow path from ChecksStatus(), keeping only the
  aggregated counts-by-state path
- Removes parseCheckStatusFromCheckConclusionState (no callers remain)
- Removes CheckRunAndStatusContextCounts from PullRequestFeatures
  and its introspection detection
- Consolidates the two feature detection introspection queries into
  one (PullRequest + WorkflowRun fits within the platform limit of
  two __type expressions)
- Removes the errgroup dependency from feature detection
- Always uses statusCheckRollupWithCountByState in pr status queries
- Updates pr view fixtures to include counts-by-state fields

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-11 15:21:17 -06:00
..
prViewPreview.json add tests for additions and deletions 2021-03-06 15:02:16 +05:30
prViewPreviewClosedState.json add tests for additions and deletions 2021-03-06 15:02:16 +05:30
prViewPreviewDraftState.json add tests for additions and deletions 2021-03-06 15:02:16 +05:30
prViewPreviewFullComments.json Do not display minimized comments 2021-01-27 08:14:46 -08:00
prViewPreviewManyReviews.json Display reviews when viewing pull requests 2021-01-20 12:15:25 -08:00
prViewPreviewMergedState.json add tests for additions and deletions 2021-03-06 15:02:16 +05:30
prViewPreviewReviews.json Fix pr view tests broken by createdAtsubmittedAt switch 2021-04-14 19:41:55 +02:00
prViewPreviewSingleComment.json add tests for additions and deletions 2021-03-06 15:02:16 +05:30
prViewPreviewWithAllChecksFailing.json refactor(pr status): remove ChecksStatus slow path 2026-03-11 15:21:17 -06:00
prViewPreviewWithAllChecksPassing.json refactor(pr status): remove ChecksStatus slow path 2026-03-11 15:21:17 -06:00
prViewPreviewWithAutoMergeEnabled.json Include auto-merge information in gh pr view (#7385) 2023-05-10 08:39:52 +12:00
prViewPreviewWithMetadataByNumber.json Update PR tests for v2 projects 2025-08-12 21:13:18 -04:00
prViewPreviewWithNilProject.json fix: Prevent nil dereference in pr view. (#8566) 2024-01-17 22:12:22 +00:00
prViewPreviewWithNoChecks.json Adding no checks message when PR has no checks 2022-10-05 22:10:38 -03:00
prViewPreviewWithReviewersByNumber.json Fix how teams are displayed in requested reviewers 2021-05-28 14:32:31 +02:00
prViewPreviewWithSomeChecksFailing.json refactor(pr status): remove ChecksStatus slow path 2026-03-11 15:21:17 -06:00
prViewPreviewWithSomeChecksPending.json refactor(pr status): remove ChecksStatus slow path 2026-03-11 15:21:17 -06:00