Skip to content

Filtering options for issues and pull requests #641

@mislav

Description

@mislav

This is a tracking ticket listing all the filtering options for issues and pull request currently available on GitHub and the status of their availability in GitHub CLI. (Checked means implemented and merged to master.)

We do not plan to explicitly support all these filtering options in CLI. We will select those that we intend to implement on a case-by-case basis.

Filtering options available through GitHub web UI

Issues

Pull requests

  • assignee --assignee, -a
  • assigned to the current authenticating user
  • no assignee
  • labels --label, -l ("OR" logic)
  • labels --label, -l ("AND" logic) BUG: gh pr list and issue list --label uses OR logic instead of AND logic #419
  • excluding a label
  • no label
  • state --state, -s
  • author --author, -A
  • authored by the current authenticating user
  • mentioning {user|team}
  • mentioning the current authenticating user
  • project
  • no project
  • milestone
  • no milestone
  • review status
    • no reviews
    • review required
    • approved
    • changes requested
    • reviewed by {user|team}
    • reviewed by the current authenticating user
    • not reviewed by {user|team}
    • not reviewed by the current authenticating user
    • awaiting review from {user|team}
    • awaiting review from the current authenticating user

Filtering options available through advanced search syntax

Issues

  • commented on by {user}
  • number of comments
  • number of interactions
  • number of reactions
  • involves {user}
  • linked issue/pull request
  • date created
  • date updated
  • date closed

Pull requests

  • commented on by {user}
  • number of comments
  • number of interactions
  • number of reactions
  • involves {user}
  • linked issue/pull request
  • date created
  • date updated
  • date closed
  • date merged
  • search by commit SHA
  • draft status
  • base branch --base, -B
  • head branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions