gh-pr-diff
Retrieve the unified diff for a GitHub pull request, showing all code changes in standard diff format.
Command
python3 .claude/skills/gh-pr-diff/scripts/get_diff.py --owner OWNER --repo REPO --pr-number PR_NUMBER
Arguments
| Argument | Required | Description |
|---|---|---|
--owner |
Yes | Repository owner (username or organization) |
--repo |
Yes | Repository name |
--pr-number |
Yes | Pull request number |
Usage Examples
# Get diff for PR #42 in octocat/hello-world
python3 .claude/skills/gh-pr-diff/scripts/get_diff.py --owner octocat --repo hello-world --pr-number 42
# Get diff for a PR in the current project
python3 .claude/skills/gh-pr-diff/scripts/get_diff.py --owner my-org --repo my-repo --pr-number 123
Converted and distributed by TomeVault — claim your Tome and manage your conversions.