github-pr
GitHub PR Tool
Fetch and merge GitHub pull requests into your local branch. Perfect for:
- Trying upstream PRs before they're merged
- Incorporating features from open PRs into your fork
- Testing PR compatibility locally
Prerequisites
ghCLI authenticated (gh auth login)- Git repository with remotes configured
Commands
Preview a PR
github-pr preview <owner/repo> <pr-number>
Shows PR title, author, status, files changed, CI status, and recent comments.
Fetch PR branch locally
github-pr fetch <owner/repo> <pr-number> [--branch <name>]
Fetches the PR head into a local branch (default: pr/<number>).
Merge PR into current branch
github-pr merge <owner/repo> <pr-number> [--no-install]
Fetches and merges the PR. Optionally runs install after merge.
Full test cycle
github-pr test <owner/repo> <pr-number>
Fetches, merges, installs dependencies, and runs build + tests.
Examples
# Preview MS Teams PR from clawdbot
github-pr preview clawdbot/clawdbot 404
# Fetch it locally
github-pr fetch clawdbot/clawdbot 404
# Merge into your current branch
github-pr merge clawdbot/clawdbot 404
# Or do the full test cycle
github-pr test clawdbot/clawdbot 404
Notes
- PRs are fetched from the
upstreamremote by default - Use
--remote <name>to specify a different remote - Merge conflicts must be resolved manually
- The
testcommand auto-detects package manager (npm/pnpm/yarn/bun)
More from bjesuiter/skills
mole-mac-cleanup
Mac cleanup & optimization tool combining CleanMyMac, AppCleaner, DaisyDisk features. Deep cleaning, smart uninstaller, disk insights, and project artifact purge.
32xcode
Build, test, and manage Xcode projects and Swift packages. Use when the user mentions Xcode, iOS/macOS app development, simulators, Swift packages, or needs to build/test Apple platform apps. Triggers on "build", "run", "test", "simulator", "xcodebuild", "swift package", "iOS app", "macOS app".
30summarize
Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).
27jb-browser-testing
Private browser testing rules for jb workflows. Prefer playwriter_exec with careful tab selection, fall back to agent-browser, and avoid playwright-mcp.
16mcporter
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
16security-check
Red-team security review for code changes. Use when reviewing pending git changes, branch diffs, or new features for security vulnerabilities, permission gaps, injection risks, and attack vectors. Acts as a pen-tester analyzing code.
16