
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
gh-load-issue
Advanced tools
A CLI tool to download GitHub issues and convert them to markdown - perfect for AI processing and offline analysis. Automatically downloads embedded images to prevent "Could not process image" errors when using with Claude Code CLI.
# Download issue using full URL
gh-load-issue https://github.com/owner/repo/issues/123
# Download issue using short format
gh-load-issue owner/repo#123
# Save to specific file
gh-load-issue owner/repo#123 -o my-issue.md
# Export as JSON
gh-load-issue owner/repo#123 --format json
# Skip image downloading
gh-load-issue owner/repo#123 --no-download-images
# Use specific GitHub token
gh-load-issue owner/repo#123 --token ghp_xxx
Install globally for system-wide access:
# Using bun
bun install -g gh-load-issue
# Using npm
npm install -g gh-load-issue
# After installation, use anywhere:
gh-load-issue --help
Remove the global installation:
# Using bun
bun uninstall -g gh-load-issue
# Using npm
npm uninstall -g gh-load-issue
# Clone the repository
git clone https://github.com/link-foundation/gh-load-issue.git
cd gh-load-issue
# Make the script executable
chmod +x gh-load-issue.mjs
# Run it
./gh-load-issue.mjs --help
Usage: gh-load-issue <issue-url> [options]
Options:
--version Show version number
-t, --token GitHub personal access token (optional for public issues)
-o, --output Output directory or file path (default: current directory)
--download-images Download embedded images (default: true)
-f, --format Output format: markdown, json (default: markdown)
-v, --verbose Enable verbose logging
-h, --help Show help
The tool automatically downloads and validates all images found in issues:
) and HTML (<img src>) syntax are detectedissue-123.md # Issue body and comments in markdown
issue-123-images/ # Directory with downloaded images
image-1.png
image-2.jpg
issue-123.json # Optional JSON export (with --format json)
The tool supports multiple authentication methods for accessing private issues:
If you have GitHub CLI installed and authenticated, the script will automatically use your credentials:
# Authenticate with GitHub CLI (one-time setup)
gh auth login
# Script automatically detects and uses gh CLI authentication
gh-load-issue owner/repo#123 # Works with private issues!
Set the GITHUB_TOKEN environment variable:
export GITHUB_TOKEN=ghp_your_token_here
gh-load-issue owner/repo#123
Pass the token directly with --token:
gh-load-issue owner/repo#123 --token ghp_your_token_here
The script uses this fallback chain:
--token command line argument (highest priority)GITHUB_TOKEN environment variablegh is installed and authenticated)# Basic usage - download a public issue
gh-load-issue https://github.com/torvalds/linux/issues/123
# Use short format
gh-load-issue torvalds/linux#123
# Download private issue (using GitHub CLI auth)
gh-load-issue myorg/private-repo#456
# Save to specific location
gh-load-issue owner/repo#789 --output ./issues/issue-789.md
# Export as JSON for programmatic use
gh-load-issue owner/repo#123 --format json
# Verbose mode for debugging
gh-load-issue owner/repo#123 --verbose
# Skip image download (faster, text only)
gh-load-issue owner/repo#123 --no-download-images
# Use explicit token
gh-load-issue owner/repo#123 --token ghp_your_token_here
The generated markdown file includes:
Example output structure:
# Issue Title
**Issue:** #123
**Author:** @username
**State:** open
**Created:** 1/1/2025, 12:00:00 PM
**Updated:** 1/2/2025, 3:30:00 PM
**Labels:** `bug`, `enhancement`
---
## Description
[Issue body content with local image references]

---
## Comments (2)
### Comment 1 by @user1
_Posted on 1/1/2025, 2:00:00 PM_
[Comment content here]
---
### Comment 2 by @user2
_Posted on 1/2/2025, 3:30:00 PM_
[Comment content here]
The JSON format includes:
--token or GITHUB_TOKEN env var)The project includes a test suite:
# Run all tests
npm test
# Or run directly
cd tests
./test-all.mjs
This project is released into the public domain under The Unlicense - see LICENSE file for details.
Contributions are welcome! This is an MVP implementation focusing on core functionality.
FAQs
A CLI tool to download GitHub issues and convert them to markdown
We found that gh-load-issue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.