feat(issue): add --labels filter to lc issue list - #206
Merged
Conversation
Adds a -l/--labels option to `lc issue list` that filters issues by label name. Accepts comma-separated names with OR semantics (an issue matches if it carries any of the given labels). Filtering is case-insensitive and handled server-side via the Linear API's IssueLabelCollectionFilter.some + eqIgnoreCase. - Add :labels argument to Issue :list read action - Add maybe_put_label_filter/2 to Issue.Read.List.build_filter/1 pipeline - Add -l/--labels option and parse_labels/1 parser to cli.ex - Wire labels through Commands.issue_list/1 input map - Update ash-domain-erd.adoc to document the new argument - Add tests: single label, multi-label OR, unknown label (empty result), composition with --team; plus domain-level filter shape tests Closes EXT-26
ruby-automation
force-pushed
the
ext-26-label-filtering-issue-list
branch
from
September 3, 2026 15:55
8d4cce4 to
1f277d1
Compare
This was referenced Sep 3, 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
-l/--labelsoption tolc issue listfor filtering by label name--labels Bug,Featurereturns issues carrying any of those labelsIssueLabelCollectionFilter.some+eqIgnoreCase--team,--project,--state,--status,--all)Closes EXT-26
Changes
app/lib/linear_cli/linear/issue.ex— add:labelsargument to:listaction; addmaybe_put_label_filter/2tobuild_filter/1pipelineapp/lib/linear_cli/cli.ex— add-l/--labelsoption withparse_labels/1parserapp/lib/linear_cli/cli/commands.ex— wirelabelsthroughissue_list/1input mapdocuments/ash-domain-erd.adoc— update:listaction descriptionTest plan
--labels Bugsendslabels.some.name.eqIgnoreCase = "Bug"to Linear API--labels Bug,Featuresendslabels.some.orwith two clauses (OR semantics)--labels no-such-label) returns empty result, no crash--team ENG --labels Bugsends bothteamandlabelsfilter keysLinear.issues(%{labels: ["Bug"]})sends correct GraphQL filterLinear.issues(%{labels: ["Bug", "Feature"]})sends correct OR filterGitTestfailures are pre-existing environment issues unrelated to this change)mix credoclean