From 978d3fce87d2178e64b9cc9f9d363dc474ffcb45 Mon Sep 17 00:00:00 2001 From: Azeem Sajid Date: Thu, 30 Jan 2025 13:05:18 +0500 Subject: [PATCH] [gh issue/pr list] Improve help text --- pkg/cmd/issue/list/list.go | 3 ++- pkg/cmd/pr/list/list.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/issue/list/list.go b/pkg/cmd/issue/list/list.go index 47da51ae4..46c0e2cb0 100644 --- a/pkg/cmd/issue/list/list.go +++ b/pkg/cmd/issue/list/list.go @@ -59,7 +59,7 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman Use: "list", Short: "List issues in a repository", Long: heredoc.Doc(` - List issues in a GitHub repository. + List issues in a GitHub repository. By default, this only lists open issues. The search query syntax is documented here: @@ -70,6 +70,7 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman $ gh issue list --assignee "@me" $ gh issue list --milestone "The big 1.0" $ gh issue list --search "error no:assignee sort:created-asc" + $ gh issue list --state all `), Aliases: []string{"ls"}, Args: cmdutil.NoArgsQuoteReminder, diff --git a/pkg/cmd/pr/list/list.go b/pkg/cmd/pr/list/list.go index 93a9b8b4b..bf0c2f8ed 100644 --- a/pkg/cmd/pr/list/list.go +++ b/pkg/cmd/pr/list/list.go @@ -55,7 +55,7 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman Use: "list", Short: "List pull requests in a repository", Long: heredoc.Doc(` - List pull requests in a GitHub repository. + List pull requests in a GitHub repository. By default, this only lists open PRs. The search query syntax is documented here: