cli/internal
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
..
authflow refactor(authflow): receive HTTP client via args 2025-10-13 16:48:10 +01:00
browser Update go-gh to v2 (#7299) 2023-04-16 15:34:23 +10:00
build Fix some typos raised by codespell 2024-01-17 15:34:49 +01:00
codespaces Fix incorrect integer conversion from int to uint16 in port forwarder (#12831) 2026-03-04 13:01:52 +01:00
config Typo in generated ~/.config/gh/config.yml 2025-07-08 11:21:31 +10:00
docs Revert "[gh config] Escape pipe symbol in Long desc for website manual" 2025-05-20 08:54:30 -06:00
featuredetection refactor(pr status): remove ChecksStatus slow path 2026-03-11 15:21:17 -06:00
gh feat(config): add accessible prompter and spinner 2025-04-22 16:50:58 -06:00
ghcmd doc(update): improve comments on updaterEnabled 2025-05-27 13:05:47 -06:00
ghinstance refactor: replace backport with strings.CutSuffix 2025-10-31 12:21:02 +00:00
ghrepo Use go-gh/auth package for IsEnterprise, IsTenancy, and NormalizeHostname 2024-10-15 11:56:43 -07:00
keyring Remove host entries without valid tokens during migration 2023-12-06 14:06:28 +01:00
licenses fix(licenses): implement VCS-friendly embedding 2026-02-25 14:59:52 +00:00
prompter Apply suggestions from code review 2026-01-26 15:09:16 -07:00
run Rework ref usage when finding and creating PRs 2025-04-15 13:38:10 -06:00
safepaths fix: resolve copyloopvar issues 2025-11-03 20:05:26 +00:00
tableprinter Refactor ColorScheme initializer 2025-04-04 11:57:37 -04:00
text Check http scheme as well 2024-08-16 10:11:53 -07:00
update Separate logic for checking updates 2025-01-10 14:16:46 -05:00
zip refactor(run download): extract zip extraction func into a separate package 2026-01-19 10:38:21 +00:00