GitHub Issue View
When to use
- The user asks to see an issue's status, details, or comments.
Inputs to confirm
- Issue number or URL.
- Whether comments or JSON output are needed.
- Target repo if not current (
--repo OWNER/REPO).
Workflow
- Verify auth:
gh --version
gh auth status
- View issue summary:
gh issue view 123
- View comments or JSON:
gh issue view 123 --comments
gh issue view 123 --json number,title,state,labels --jq '.title'
- Optional web view:
gh issue view 123 --web
Examples
# Get title and state via JSON
~ gh issue view 123 --json title,state --jq '"\(.title) (\(.state))"'
Notes
--template supports Go templates; see gh help formatting.
References