# github-pr > Fetch, preview, merge, and test GitHub PRs locally. Great for trying upstream PRs before they're merged. - Author: 0xturboblitz - Repository: sundial-org/awesome-openclaw-skills - Version: 20260201003509 - Stars: 38 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/sundial-org/awesome-openclaw-skills - Web: https://mule.run/skillshub/@@sundial-org/awesome-openclaw-skills~github-pr:20260201003509 --- --- name: github-pr description: Fetch, preview, merge, and test GitHub PRs locally. Great for trying upstream PRs before they're merged. homepage: https://cli.github.com metadata: clawdhub: emoji: "🔀" requires: bins: ["gh", "git"] --- # 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 - `gh` CLI authenticated (`gh auth login`) - Git repository with remotes configured ## Commands ### Preview a PR ```bash github-pr preview ``` Shows PR title, author, status, files changed, CI status, and recent comments. ### Fetch PR branch locally ```bash github-pr fetch [--branch ] ``` Fetches the PR head into a local branch (default: `pr/`). ### Merge PR into current branch ```bash github-pr merge [--no-install] ``` Fetches and merges the PR. Optionally runs install after merge. ### Full test cycle ```bash github-pr test ``` Fetches, merges, installs dependencies, and runs build + tests. ## Examples ```bash # 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 `upstream` remote by default - Use `--remote ` to specify a different remote - Merge conflicts must be resolved manually - The `test` command auto-detects package manager (npm/pnpm/yarn/bun)