feat(cli): add --project filter to issue list#691
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
wingtonrbrito
pushed a commit
to wingtonrbrito/multica
that referenced
this pull request
May 27, 2026
Co-authored-by: nocoo <nocoo@users.noreply.github.com>
xiaoyue26
pushed a commit
to xiaoyue26/multica
that referenced
this pull request
May 30, 2026
Co-authored-by: nocoo <nocoo@users.noreply.github.com>
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
Add
--projectflag tomultica issue listso users can filter issues by project.--projectwas added toissue createandissue updatein #562, butissue listwas missed. This makes the CLI inconsistent — you can assign issues to projects but cannot list them by project.Changes
CLI (
server/cmd/multica/cmd_issue.go)--projectflag onissueListCmdproject_idquery parameter inrunIssueListAPI handler (
server/internal/handler/issue.go)project_idquery parameter inListIssuesListIssuesParams,ListOpenIssuesParams, andCountIssuesParamsSQL (
server/pkg/db/queries/issue.sql)project_idfilter toListIssues,ListOpenIssues, andCountIssuesqueries using the samesqlc.nargpattern as existing filtersUsage
Test plan
go build ./cmd/multica/— compilesgo build ./cmd/server/— compilesgo test ./cmd/multica/— passes--projectreturns only matching issues