gh issue list
gh issue list [flags]
List issues in a GitHub repository. By default, this only lists open issues.
The search query syntax is documented here:
--search query. For more information about advanced issue search, see:
Options
gh issue ls You will see the most recent 30 open items. You can use flags to filter the list for your specific use cases.
--app <string>-a,
--assignee <string>-A,
--author <string>-q,
--jq <expression>--json <fields>-l,
--label <strings>-L,
--limit <int> (default 30)--mention <string>-m,
--milestone <string>-S,
--search <query>-s,
--state <string> (default "open")-t,
--template <string>-w,
--webOptions inherited from parent commands
-R,
--repo <[HOST/]OWNER/REPO>ALIASES
JSON Fields
assignees, author, body, closed, closedAt, closedByPullRequestsReferences, comments, createdAt, id, isPinned, labels, milestone, number, projectCards, projectItems, reactionGroups, state, stateReason, title, updatedAt, urlExamples
$ gh issue list --label "bug" --label "help wanted"
$ gh issue list --author monalisa
$ 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 allSee also
In use
Default behavior
# Viewing a list of open issues
~/Projects/my-project$ gh issue list
Issues for owner/repo
#14 Update the remote url if it changed (bug)
#14 PR commands on a detached head (enhancement)
#13 Support for GitHub Enterprise (wontfix)
#8 Add an easier upgrade command (bug)
~/Projects/my-project$Filtering with flags
# Viewing a list of closed issues assigned to a user
~/Projects/my-project$ gh issue list --state closed --assignee user
Issues for owner/repo
#13 Enable discarding submodule changes (bug)
#8 Upgrade to latest react (upgrade)
~/Projects/my-project$