Skip to content

feat(issue): add --all and --status filters to issue list - #117

Merged
bougyman merged 2 commits into
mainfrom
CRY-44-all-and-status-filters
Aug 14, 2026
Merged

feat(issue): add --all and --status filters to issue list#117
bougyman merged 2 commits into
mainfrom
CRY-44-all-and-status-filters

Conversation

@bougyman

Copy link
Copy Markdown
Member

Summary

  • --all flag removes completedAt/canceledAt null-check filters so completed and cancelled issues appear in results
  • --status option accepts comma-separated workflow state types (triage, backlog, unstarted, started, completed, cancelled) and injects a state.type.in GraphQL filter; when the requested status includes completed or cancelled types, the corresponding date null-checks are also suppressed so those issues aren't pre-filtered before the state type filter can match them
  • Both inputs are wired through Commands.issue_listLinear.issuesbuild_filter
  • Invalid --status values are rejected at parse time by the Optimus parser with a clear error message

Closes CRY-44.

Test plan

  • --all test: verifies completedAt/canceledAt are absent from the GraphQL filter variables
  • --status started test: verifies state.type.in filter is present and date filters remain (started is not completed/cancelled)
  • --status completed test: verifies state.type.in present, completedAt absent, canceledAt present
  • --status started,completed test: verifies multi-type filter and selective date suppression
  • --status badtype test: verifies Optimus rejects the unknown value and calls halt with exit code 1

🤖 Generated with Claude Code

- --all removes completedAt/canceledAt null-check filters so completed
  and cancelled issues are included in results
- --status accepts comma-separated workflow state types (triage, backlog,
  unstarted, started, completed, cancelled) and injects a state.type.in
  GraphQL filter; when status includes completed/cancelled types, the
  corresponding date null-checks are also suppressed
- Wires both new inputs through Commands.issue_list into Linear.issues
- Validates --status values in the Optimus parser with a clear error
- Adds four new tests covering --all, --status started, --status completed,
  and multi-type --status, plus Optimus-level rejection of unknown types

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 14, 2026 20:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bougyman
bougyman merged commit 4517e82 into main Aug 14, 2026
2 checks passed
@bougyman
bougyman deleted the CRY-44-all-and-status-filters branch August 14, 2026 21:03
bougyman pushed a commit that referenced this pull request Aug 14, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.8.0](v1.7.0...v1.8.0)
(2026-08-14)


### Features

* **issue:** add --all and --status filters to issue list
([#117](#117))
([4517e82](4517e82))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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