gh pr list

List pull requests

What it does

gh pr list lists the open pull requests: number, title, branch and when each was created. It shows 30 by default; --limit changes that.

Filters: --author @me for your own, --label by label, --state merged or --state all for more than the open ones. --search takes a query in GitHub search syntax, such as --search "review:required".

Syntax

gh pr list
gh pr list --author @me
gh pr list --state <open|closed|merged|all>

Examples

Related commands

Practise · All commands