Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter issue list by project #7

Merged
merged 15 commits into from
Sep 18, 2024

Conversation

xunker
Copy link
Contributor

@xunker xunker commented Sep 17, 2024

Adds option to filter issue list by project with lc issues list --project <identifier>:

$ lc issues list --no-mine --project "https://linear.app/myorg/project/test-proj-fe9940e559f4"
PRO-4        Test 3 - estimate
PRO-2        Test 1 - Estimate

Also does:

  • allows projects to be identified by URL or ID, too:
    • ls issues list ---project "https://linear.app/myorg/project/my-project-a2d0ddbbfbeb"
    • ls issues list ---project 59a16a32-3733-41c9-a5bc-13ef91a940e7
  • methods to query projects moved to CLI::Projects (linear-cli/lib/linear/cli/projects.rb) so they can be shared with CLI::WhatFor so it will also benefit from the new finders
  • adds basic rspec example for testing Linear::Project#match_score? changes

@xunker xunker changed the title Filter issue list by project Draft: Filter issue list by project Sep 17, 2024
@xunker xunker changed the title Draft: Filter issue list by project Filter issue list by project Sep 17, 2024
lib/linear/cli/projects.rb Outdated Show resolved Hide resolved
bougyman
bougyman previously approved these changes Sep 18, 2024
Copy link
Member

@bougyman bougyman left a comment

Choose a reason for hiding this comment

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

Thanks for this one, it's been on my todo list!

@bougyman
Copy link
Member

Can you remove the Gemfile.lock? I probably never should have committed it, really doesn't belong in a gemmed cli, don't you think?

@bougyman bougyman added the enhancement New feature or request label Sep 18, 2024
@bougyman bougyman merged commit 72eeb05 into rubyists:main Sep 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants