From c69f21080733bd2904cbf7e727680f62d46cf899 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Thu, 22 Apr 2021 14:45:19 -0500 Subject: [PATCH] add some more examples for pr list --- pkg/cmd/pr/list/list.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkg/cmd/pr/list/list.go b/pkg/cmd/pr/list/list.go index de58d5ad2..f0ccfe11a 100644 --- a/pkg/cmd/pr/list/list.go +++ b/pkg/cmd/pr/list/list.go @@ -50,8 +50,19 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman Use: "list", Short: "List and filter pull requests in this repository", Example: heredoc.Doc(` + List PRs authored by you + $ gh pr list --author @me + + List PRs assigned to you + $ gh pr list --assignee @me + + List PRs by label, combining multiple labels with AND $ gh pr list --label bug --label "priority 1" + + List PRs using search syntax $ gh pr list --search "status:success review:required" + + Open the list of PRs in a web browser $ gh pr list --web `), Args: cmdutil.NoArgsQuoteReminder,