LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

sudo apt install gh
copy
sudo dnf install gh
copy
sudo pacman -S github-cli
copy
sudo apk add github-cli
copy
sudo zypper install gh
copy
brew install gh
copy
nix profile install nixpkgs#gh
copy

SEE ALSO

gh(1), gh-pr(1)

RESOURCES

Copied to clipboard
Kai