2025-03-14 21:59:59 -06:00
|
|
|
# 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:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh issue view {{issue_number}} {{[-w|--web]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a new issue in the default web browser:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh issue create {{[-w|--web]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List the last 10 issues with the `bug` label:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh issue list {{[-L|--limit]}} {{10}} {{[-l|--label]}} "{{bug}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List closed issues made by a specific user:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh issue list {{[-s|--state]}} closed {{[-A|--author]}} {{username}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display the status of issues relevant to the user, in a specific repository:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`gh issue status {{[-R|--repo]}} {{owner}}/{{repository}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Reopen a specific issue:
|
|
|
|
|
|
|
|
|
|
`gh issue reopen {{issue_number}}`
|