cli/pkg/cmd/pr
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
..
checkout fix(pr checkout): add alias co 2025-09-24 14:56:59 +01:00
checks fix(pr status): don't count cancelled checks as failures 2026-03-11 12:33:31 -06:00
close Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
comment Add --delete-last option to pr comment and issue comment (#10596) 2025-05-01 14:12:55 +01:00
create Merge pull request #12627 from cli/kw/pr-create-multi-select-with-search-ccr 2026-03-06 10:24:19 -07:00
diff Merge branch 'trunk' into feature/pr-diff-exclude 2026-03-09 19:35:51 +05:30
edit Add missing TODO comments for featuredetection if-statements 2026-02-16 14:24:32 -07:00
list Add missing TODO comments for featuredetection if-statements 2026-02-16 14:24:32 -07:00
merge test(pr merge): always assert stderr 2025-07-05 15:02:41 +01:00
ready Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
reopen Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
revert Return only basic pull request info when reverting a PR 2025-10-22 18:02:35 -04:00
review Cleanup run command stubbed finders in tests 2025-05-02 14:48:52 +02:00
shared Merge pull request #12627 from cli/kw/pr-create-multi-select-with-search-ccr 2026-03-06 10:24:19 -07:00
status refactor(pr status): remove ChecksStatus slow path 2026-03-11 15:21:17 -06:00
update-branch chore: remove redundant word in comment 2025-03-12 16:13:46 +08:00
view refactor(pr status): remove ChecksStatus slow path 2026-03-11 15:21:17 -06:00
pr.go feat: implement pr revert 2025-10-06 13:25:31 -04:00