SuperAPI AI Directory

gh-issue-view

Coding & development

View repository

Updated 10-15 20:34

About this skill

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

  1. Verify auth:
    gh --version
    gh auth status
    
  2. View issue summary:
    gh issue view 123
    
  3. View comments or JSON:
    gh issue view 123 --comments
    gh issue view 123 --json number,title,state,labels --jq '.title'
    
  4. 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