Load comprehensive GitHub issue information including title, description, comments, labels, assignees, milestones, and related items (linked PRs and cross-references)...
Fetch complete GitHub issue information to provide context for planning and implementation. This skill retrieves all relevant data from a GitHub issue including the description, all comments and discussion, metadata (labels, assignees, milestones), and related items (linked pull requests and cross-referenced issues).
Use this skill when:
Fetch issue information using the fetch_issue.py script with any of these formats:
# Current repository issue by number
scripts/fetch_issue.py 123
# Specific repository issue
scripts/fetch_issue.py owner/repo#456
# Issue by full URL
scripts/fetch_issue.py https://github.com/owner/repo/issues/789
The script outputs formatted markdown containing all issue information.
Ensure the GitHub CLI (gh) is installed and authenticated:
gh auth status
If not authenticated, run:
gh auth login
Execute the fetch_issue.py script with an issue reference. The script accepts three formats:
123owner/repo#123https://github.com/owner/repo/issues/123The script will fetch and output:
# Issue #123: Add new feature for X
**URL**: https://github.com/owner/repo/issues/123
**State**: open
**Author**: username
**Created**: 2024-10-15T10:30:00Z
**Labels**: enhancement, priority-high
**Assignees**: developer1, developer2
## Description
[Full issue description]
## Comments (3)
### Comment 1 by user1 (2024-10-16T09:00:00Z)
[Comment body]
## Linked Pull Requests
- PR #124 - Fix for issue #123
## Cross-Referenced Issues
- #120 - Related issue
When using this skill as part of a planning workflow:
The script handles common errors:
gh auth loginPython script that uses the GitHub CLI to fetch comprehensive issue data. Can be executed directly without loading into context.
Usage: scripts/fetch_issue.py <issue-reference>
Returns: Formatted markdown with complete issue information
Requirements:
gh) installed and authenticated