Skip to content

Follow-up to #170: cover labels on the with-comments query path#241

Merged
schpet merged 1 commit into
mainfrom
oss-pr-lander/170
Jul 11, 2026
Merged

Follow-up to #170: cover labels on the with-comments query path#241
schpet merged 1 commit into
mainfrom
oss-pr-lander/170

Conversation

@schpet

@schpet schpet commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Draft follow-up to #170. Do not merge before #170. #170's branch was conflicting with main (it predated a refactor that moved fetchIssueDetails' return type to the codegen-derived FetchedIssueDetails and evolved the issue-detail queries); I resolved it by merging current main into the PR branch — taking main's structure and re-applying the labels selection to both queries — and pushed that merge to the fork, so #170 is mergeable again.

This follow-up adds one test: #170 selects labels in both GetIssueDetails and GetIssueDetailsWithComments, but its labels-with-content test only exercised the --no-comments (GetIssueDetails) path. This adds a --json (with comments) test carrying real labels so both fetchIssueDetailsRaw paths are verified to surface labels — the consistency both were meant to guarantee.

Credit to @RengarLee for #170.

#170 adds `labels` to `issue view --json` by selecting them in both
GetIssueDetails and GetIssueDetailsWithComments. Its dedicated
labels-with-content test only exercises the --no-comments (GetIssueDetails)
path; the with-comments path was covered only with empty labels. Add a
--json (with comments) test carrying real labels so both fetchIssueDetailsRaw
code paths are verified to surface labels — the consistency both were meant to
guarantee.
@schpet
schpet marked this pull request as ready for review July 11, 2026 21:25
@schpet
schpet force-pushed the oss-pr-lander/170 branch from 60e0d3e to 1436392 Compare July 11, 2026 21:25
@schpet
schpet merged commit 95097b8 into main Jul 11, 2026
15 checks passed
@schpet
schpet deleted the oss-pr-lander/170 branch July 11, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant