Gh Issue View

View GitHub issue details, comments, and JSON fields using gh CLI.

dceoy 2036eee 1004 B Updated

File contents

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

dceoy/github-cli-agent-skills/tree/main/skills/gh-issue-view commit 2036eeed7a

Frequently asked questions

npx skillmds@latest add dceoy/gh-issue-view