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