Read GitHub Issue
Retrieves and displays GitHub issue information including title, description, labels, assignees, and comments.
Issue Information
!gh issue view $ISSUE_NUMBER --json title,state,labels,assignees,body,comments,url -q '"**Title:** \(.title) **State:** \(.state) **Labels:** \(if .labels | length > 0 then (.labels | map(.name) | join(", ")) else "None" end) **Assignees:** \(if .assignees | length > 0 then (.assignees | map(.login) | join(", ")) else "None" end) **Issue URL:** \(.url) **Description:** \(.body) **Comments:** \(if .comments | length > 0 then (.comments | map("**\(.author.login)** - \(.createdAt):\n\(.body)") | join("\n\n")) else "No comments" end)"' | cat
Instructions
IMPORTANT: You MUST output a summary to the user. After gathering the issue information above, display a formatted summary that includes:
- •Issue Number - The issue number
- •Title - The issue title
- •State - Whether the issue is open or closed
- •Labels - Any labels attached to the issue
- •Assignees - Who is assigned to the issue (if any)
- •Description - The issue description/body
- •Comments - Summary of comments on the issue (if any)
- •Issue URL - Direct link to the issue
Format the output clearly using markdown so the user can see the issue details at a glance. This summary should always be visible in your response to the user.
After displaying the issue information, you should analyze the requirements and start planning how to address the issue.