LinuxCommandLibrary

gh-issue

manage repository issues and bug reports

TLDR

List issues

$ gh issue list
copy
Create an issue
$ gh issue create
copy
View an issue
$ gh issue view [number]
copy
Close an issue
$ gh issue close [number]
copy
Reopen an issue
$ gh issue reopen [number]
copy
Edit an issue
$ gh issue edit [number]
copy
Search issues
$ gh issue list --search "[query]"
copy
List your issues
$ gh issue list --assignee @me
copy

SYNOPSIS

gh issue command [options]

DESCRIPTION

gh issue manages GitHub issues for tracking bugs, feature requests, tasks, and discussions. Issues form the core of project management on GitHub, supporting labels, assignees, milestones, and projects.
The command provides comprehensive issue lifecycle management including creation, editing, commenting, status changes, and deletion. Filtering capabilities enable finding issues by assignee, label, state, and search queries. Issues can be managed across multiple repositories.
Integration with pull requests allows linking issues to code changes, with automatic closing when PRs merge using keywords in commit messages.

PARAMETERS

-R, --repo owner/repo

Repository.
-a, --assignee user
Filter by assignee.
-l, --label label
Filter by label.
-s, --state state
Filter by state.

SUBCOMMANDS

list

List issues.
create
Create an issue.
view
View an issue.
close
Close an issue.
reopen
Reopen an issue.
edit
Edit an issue.
comment
Add comment.
delete
Delete an issue.
status
Show status.

SEE ALSO

gh(1), gh-pr(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community