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
--templatesupports Go templates; seegh help formatting.
References
- GitHub CLI manual: https://cli.github.com/manual/
gh issue view --help