docs(issue list): fix incorrect formatting

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-09-02 10:14:32 +01:00
parent 87bd76c5aa
commit 20e8b9e8ea
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -60,17 +60,16 @@ func NewCmdList(f *cmdutil.Factory, runF func(*ListOptions) error) *cobra.Comman
Short: "List issues in a repository",
// TODO advancedIssueSearchCleanup
// Update the links and remove the mention at GHES 3.17 version.
Long: heredoc.Doc(`
Long: heredoc.Docf(`
List issues in a GitHub repository. By default, this only lists open issues.
When runs against %[1]sgithub.com%[1]s or GHE versions newer than 3.17.x,
the command performs search by using the advanced issue search syntax, which
is documented at:
When runs against %[1]sgithub.com%[1]s or GHE versions newer than 3.17.x, the command
performs search by using the advanced issue search syntax, which is documented at:
<https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-search-and-more>
The search query syntax is documented here:
<https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests>
`),
`, "`"),
Example: heredoc.Doc(`
$ gh issue list --label "bug" --label "help wanted"
$ gh issue list --author monalisa