Skip to content

feat: add --label filter to issue list#180

Open
mihai-chiorean wants to merge 2 commits intoschpet:mainfrom
mihai-chiorean:feat/issue-list-label-filter
Open

feat: add --label filter to issue list#180
mihai-chiorean wants to merge 2 commits intoschpet:mainfrom
mihai-chiorean:feat/issue-list-label-filter

Conversation

@mihai-chiorean
Copy link

Summary

Adds -l, --label <label> flag to issue list for filtering issues by label name. The flag is repeatable — when multiple labels are specified, only issues matching all labels are returned.

  • Uses eqIgnoreCase for case-insensitive label name matching
  • Single label: filter.labels = { some: { name: { eqIgnoreCase: "Bug" } } }
  • Multiple labels: filter.labels = { and: [{ some: { name: { eqIgnoreCase: "Bug" } } }, ...] }

Usage

# Single label
linear issue list --label Bug

# Multiple labels (AND logic)
linear issue list --label Bug --label "High Priority"

# Combined with other filters
linear issue list --label Bug --state started --cycle active

Test plan

  • Added snapshot test for issue list --label Bug with mock server
  • Updated help text snapshot with new --label flag
  • deno fmt clean
  • deno lint clean
  • All tests pass, existing tests unaffected

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.

2 participants