X Tutup
Skip to content

Commit 5a2ec54

Browse files
author
Nate Smith
authored
Merge pull request cli#3494 from cli/pr-list-example
add some more examples for pr list
2 parents bf7ed68 + c69f210 commit 5a2ec54

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkg/cmd/pr/list/list.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,19 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman
5050
Use: "list",
5151
Short: "List and filter pull requests in this repository",
5252
Example: heredoc.Doc(`
53+
List PRs authored by you
54+
$ gh pr list --author @me
55+
56+
List PRs assigned to you
57+
$ gh pr list --assignee @me
58+
59+
List PRs by label, combining multiple labels with AND
5360
$ gh pr list --label bug --label "priority 1"
61+
62+
List PRs using search syntax
5463
$ gh pr list --search "status:success review:required"
64+
65+
Open the list of PRs in a web browser
5566
$ gh pr list --web
5667
`),
5768
Args: cmdutil.NoArgsQuoteReminder,

0 commit comments

Comments
 (0)
X Tutup