Skip to content

feat(cli): richer filters for issues list#17

Merged
dubscode merged 2 commits intomainfrom
issue-4
May 9, 2026
Merged

feat(cli): richer filters for issues list#17
dubscode merged 2 commits intomainfrom
issue-4

Conversation

@dubscode
Copy link
Copy Markdown
Contributor

@dubscode dubscode commented May 9, 2026

Adds first-class filter flags to linear issues list so agents/scripts can narrow results without broad workspace scans.

New globals: --query (search identifier/title/description), --updated-after, --created-after (ISO date or negative ISO 8601 duration like -P7D), and --no-parent (top-level issues only). Filters compose with existing --state/--assignee/--project/--label/--priority and respect --limit/--cursor paging via the existing local-filter drain path.

Help text and tests added for parseDateBoundary plus the new matchesIssue cases.

Refs: #4

Adds --query, --updated-after, --created-after, --no-parent globals.
Date flags accept ISO 8601 dates and negative durations (-P7D).

Refs: #4
Copilot AI review requested due to automatic review settings May 9, 2026 05:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds richer, first-class filtering to linear issues list by introducing new global flags (--query, --updated-after, --created-after, --no-parent) and implementing the corresponding local-filter logic used during paging/drain.

Changes:

  • Added new global CLI flags and wired them into GlobalOptions.
  • Implemented date-boundary parsing (ISO date or relative ISO-8601 duration) and additional matchesIssue predicates.
  • Extended CLI help examples and added unit tests for parseDateBoundary + new matchesIssue cases.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/cli/tests/query.test.ts Adds unit coverage for parseDateBoundary and new matchesIssue filters.
packages/cli/src/runtime/query.ts Implements date parsing and new issue filter predicates; updates local-filter detection.
packages/cli/src/runtime/options.ts Plumbs new flags into GlobalOptions parsing.
packages/cli/src/index.ts Registers new global CLI options and help text for them.
packages/cli/src/help/root-help.ts Adds usage examples demonstrating new filters.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/cli/src/runtime/query.ts Outdated
Comment thread packages/cli/src/runtime/query.ts Outdated
Build issue matcher once per command so --updated-after/--created-after
boundaries parse a single time. Throw a clear error on invalid input
instead of silently filtering out every result.

Refs: #4
@dubscode dubscode merged commit 34d98bd into main May 9, 2026
5 checks passed
@dubscode dubscode deleted the issue-4 branch May 9, 2026 05:20
github-actions Bot pushed a commit that referenced this pull request May 9, 2026
# [1.5.0-alpha.3](v1.5.0-alpha.2...v1.5.0-alpha.3) (2026-05-09)

### Features

* **cli:** add --parent filter to issues list ([#18](#18)) ([e1e8f21](e1e8f21)), closes [#3](#3)
* **cli:** richer filters for issues list ([#17](#17)) ([34d98bd](34d98bd)), closes [#4](#4)
* **cli:** show per-resource filters, examples, input field hints in subcommand help ([#19](#19)) ([5818d1e](5818d1e)), closes [#7](#7)
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

🎉 This PR is included in version 1.5.0-alpha.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions Bot pushed a commit that referenced this pull request May 9, 2026
# [1.5.0](v1.4.0...v1.5.0) (2026-05-09)

### Features

* **cli:** add --parent filter to issues list ([#18](#18)) ([e1e8f21](e1e8f21)), closes [#3](#3)
* **cli:** add linear cli v2 foundations ([#2](#2)) ([854d165](854d165))
* **cli:** improve help discoverability for subcommands ([#1](#1)) ([702ebce](702ebce))
* **cli:** richer filters for issues list ([#17](#17)) ([34d98bd](34d98bd)), closes [#4](#4)
* **cli:** show per-resource filters, examples, input field hints in subcommand help ([#19](#19)) ([5818d1e](5818d1e)), closes [#7](#7)
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants