2020-11-01 02:17:21 +00:00
|
|
|
# gh issue
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
> Manage GitHub issues.
|
2020-11-01 02:17:21 +00:00
|
|
|
> More information: <https://cli.github.com/manual/gh_issue>.
|
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
- Display a specific issue:
|
2020-11-01 02:17:21 +00:00
|
|
|
|
|
|
|
`gh issue view {{issue_number}}`
|
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
- Display a specific issue in the default web browser:
|
|
|
|
|
|
|
|
`gh issue view {{issue_number}} --web`
|
|
|
|
|
|
|
|
- Create a new issue in the default web browser:
|
2020-11-01 02:17:21 +00:00
|
|
|
|
|
|
|
`gh issue create --web`
|
|
|
|
|
|
|
|
- List the last 10 issues with the `bug` label:
|
|
|
|
|
|
|
|
`gh issue list --limit {{10}} --label "{{bug}}"`
|
|
|
|
|
|
|
|
- List closed issues made by a specific user:
|
|
|
|
|
|
|
|
`gh issue list --state closed --author {{username}}`
|
|
|
|
|
|
|
|
- Display the status of issues relevant to the user, in a specific repository:
|
|
|
|
|
|
|
|
`gh issue status --repo {{owner}}/{{repository}}`
|
|
|
|
|
2022-05-02 11:55:38 +01:00
|
|
|
- Reopen a specific issue:
|
2020-11-01 02:17:21 +00:00
|
|
|
|
|
|
|
`gh issue reopen {{issue_number}}`
|