cli/pkg/cmd/issue/view
Kynan Ware a78bedb772 Wrap relationship JSON output in {nodes, totalCount}, fetch full pages
The subIssues, blockedBy, and blocking JSON output is currently shaped
as a flat array, which silently truncates when there are more entries
than the GraphQL fragment fetches. That's misleading once a user
crosses the page size, so this switches each connection to a
{nodes, totalCount} object so consumers can see when there's more.

While confirming page sizes, the GitHub limits turn out to be:

- sub-issues: up to 100 per parent
  https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/adding-sub-issues
- blocked-by / blocking: up to 50 per relationship type
  https://github.blog/changelog/2025-08-21-dependencies-on-issues/

So subIssues moves to first:100 to fetch the full set; blockedBy and
blocking stay at first:50, which already covers their cap.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-06 16:05:07 -06:00
..
fixtures Fix redundant API call in gh issue view --comments (#12606) 2026-02-09 15:31:55 +05:30
http.go Fix redundant API call in gh issue view --comments (#12606) 2026-02-09 15:31:55 +05:30
view.go fix: address code review findings from multi-model review 2026-04-30 08:49:43 -06:00
view_test.go Wrap relationship JSON output in {nodes, totalCount}, fetch full pages 2026-05-06 16:05:07 -06:00