Skip to content

Filter PR list by requested_reviewer #735

@glommer

Description

@glommer

Describe the feature or problem you’d like to solve

It is now possible to filter PRs by assignee. However, sometimes people are asked to review code but aren't necessarily the assignee, in which case they are requested reviewers. It would be useful to filter the list of PRs based on that information too, so I can easily see which PR need my attention as a reviewer.

Proposed solution

Add an option --pending-reviewer to the filter options to gh pr list. In an ideal world, we would be able to OR it with assignee, so I can list "all PRs that need my attention in some form or another".

PRs for which I am tagged as a reviewer but I have approved already shouldn't show -- which is why the proposed option name would be --pending-reviewer and not --reviewer

How will it benefit CLI and its users?

It is one fewer task that users will need the browser for. At least in our organization, seeing which PRs I should review is an important part of the workflow.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLI

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions