feat(issue-list): show labels in compact output when filtering by --labels - #211
Merged
Merged
Conversation
ruby-automation
force-pushed
the
EXT-28-show-labels-in-filtered-issue-list
branch
from
September 4, 2026 17:28
9628ad0 to
1f4e9e8
Compare
…abels When `lc issue list -l/--labels` is used, the compact output now includes each issue's label names in square brackets at the end of the line. Without `--labels`, compact output is unchanged (no extra API payload). - Add `Issue.list_fields_with_labels/0` that extends `base_fields` with labels - Branch in `Issue.Read.List` to use the label-aware query only when labels were requested - Teach `Display.issue_line/2` to append `[Label, ...]` when the `labels` opt is truthy - Pass `labels: input.labels != []` from `Commands.issue_list/1` to Display - Add tests for query doc selection, label parsing, Display rendering, and end-to-end CLI output (short `-l`, long `--labels`, multiple labels, no-filter baseline) Closes EXT-28
ruby-automation
force-pushed
the
EXT-28-show-labels-in-filtered-issue-list
branch
from
September 4, 2026 17:29
1f4e9e8 to
eb5e508
Compare
ruby-automation
enabled auto-merge (squash)
September 4, 2026 17:29
ruby-automation
deleted the
EXT-28-show-labels-in-filtered-issue-list
branch
September 4, 2026 17:30
This was referenced Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lc issue list -l/--labelsis used, each result issue's label names now appear in square brackets at the end of the compact output line (e.g.CRY-1 [In Progress] Fix the thing [Bug, Feature]).--labels, compact output is completely unchanged — the list query still usesbase_fieldswithout a labels selection, so there's no extra API payload.to_plain/1serialises the whole struct).Changes
app/lib/linear_cli/linear/issue.ex: AddedIssue.list_fields_with_labels/0(extendsbase_fieldswithlabels { nodes { ... } }).Issue.Read.Listnow branches onargs.labels != []to select the label-aware query document.app/lib/linear_cli/cli/display.ex:issue_line/2accepts opts and appends[Label, ...]whenopts.labelsis truthy and the issue has labels.app/lib/linear_cli/cli/commands.ex: Passeslabels: input.labels != []toDisplay.show/2.Test plan
display_test.exs: compact line with labels shown whenlabels: true; brackets omitted whenlabels: false; brackets omitted when issue has no labels even iflabels: trueissue_test.exs: query document containslabels {when filtering by labels; nolabels {when not filtering; label names parsed from responseissue_commands_test.exs: short-lflag shows labels; long--labelsflag shows labels; multiple comma-separated labels all appear; compact listing without--labelsdoes not show bracketsGitTestfailures are pre-existing and unrelated to this change)Closes EXT-28
🤖 Generated with Claude Code