Skip to content

Add filter issues by author#625

Merged
mislav merged 3 commits intocli:masterfrom
eddumelendez:add_author_flag_issues
Mar 12, 2020
Merged

Add filter issues by author#625
mislav merged 3 commits intocli:masterfrom
eddumelendez:add_author_flag_issues

Conversation

@eddumelendez
Copy link
Contributor

@eddumelendez eddumelendez commented Mar 10, 2020

This provides support for filtering issues by author with the issue list command.

The flags are -A and --author. Fixes #389.

Edit: PR support for filtering by author isn't available from the API so that'll need to happen in a follow up PR. I (Billy) updated #389 to just be scoped to issues so this can close that issue when it's merged.

Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

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

This looks good, thank you! One note though

Copy link
Contributor

@billygriffin billygriffin 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 the contribution @eddumelendez! Sorry for dropping in after @mislav had already approved it, but I'm wondering if this is intended to fix #389? I'd like to ensure we don't confuse people by supporting filtering by author for issues, but not for pull requests, so I'd love that to be part of this as well if you're able to add that.

If you don't mind adding more context to the PR body so people don't have to look at the code to figure out how this works (how it's invoked with -A or --author is a good example), that would also be really helpful!

@eddumelendez
Copy link
Contributor Author

@billygriffin thanks for pointing me to the issue! I was working on this for PRs too in another branch but I couldn't find filter for pullRequests in the github explorer api. I would be glad to do it.

@billygriffin
Copy link
Contributor

@eddumelendez Apologies, it looks like you're right that filtering by author is not yet available from the GraphQL API. I'm going to dismiss my review so this can get merged, and update the associated issue to only be about pull requests, and we'll identify that as blocked on the API side. And hopefully we'll be able to get that filtering added soon to make this available for PRs as well. Thanks again for the contribution!

@mislav mislav merged commit 8913f64 into cli:master Mar 12, 2020
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.

Support filtering by author for issues

3 participants