HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gh issue — Manage GitHub issues. More information: <https://cli.github.com/manual/gh_issue>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
gh issuecommandgithubmanagecliissuesinformationmore

Problem

How to use the gh issue command: Manage GitHub issues. More information: <https://cli.github.com/manual/gh_issue>.

Solution

gh issue — Manage GitHub issues. More information: <https://cli.github.com/manual/gh_issue>.

Display a specific issue:
gh issue view {{issue_number}}


Display a specific issue in the default web browser:
gh issue view {{issue_number}} {{[-w|--web]}}


Create a new issue in the default web browser:
gh issue {{[new|create]}} {{[-w|--web]}}


List the last 10 issues with the bug label:
gh issue {{[ls|list]}} {{[-L|--limit]}} 10 {{[-l|--label]}} "bug"


List closed issues made by a specific user:
gh issue {{[ls|list]}} {{[-s|--state]}} closed {{[-A|--author]}} {{username}}


Display the status of issues relevant to the user, in a specific repository:
gh issue status {{[-R|--repo]}} {{owner}}/{{repository}}


Reopen a specific issue:
gh issue reopen {{issue_number}}

Code Snippets

Display a specific issue

gh issue view {{issue_number}}

Display a specific issue in the default web browser

gh issue view {{issue_number}} {{[-w|--web]}}

Create a new issue in the default web browser

gh issue {{[new|create]}} {{[-w|--web]}}

List the last 10 issues with the `bug` label

gh issue {{[ls|list]}} {{[-L|--limit]}} 10 {{[-l|--label]}} "bug"

List closed issues made by a specific user

gh issue {{[ls|list]}} {{[-s|--state]}} closed {{[-A|--author]}} {{username}}

Context

tldr-pages: common/gh issue

Revisions (0)

No revisions yet.