github-pr

Fetch, preview, merge, and test GitHub pull requests locally.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/SennTse/openclaw-backup --skill github-pr-senntse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-pr
Source: https://github.com/SennTse/openclaw-backup/tree/main/skills/github-pr
Command: npx skills add https://github.com/SennTse/openclaw-backup --skill github-pr-senntse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rich, typer, and includes scripts (resource) components.

What problem does it solve?

Fetch and merge GitHub pull requests locally by enabling you to preview details, assess changes, and run tests before contributing upstream.

Core Features & Use Cases

  • Preview a PR to view its title, author, status, files changed, CI status, and recent comments.
  • Fetch a PR branch locally into a dedicated local branch for review.
  • Merge a PR into your current branch and optionally install dependencies and run tests.
  • Perform a full test cycle (fetch, merge, install, build, and test) to validate changes locally.

Quick Start

Use the github-pr tool to preview, fetch, merge, or test a PR by running commands like github-pr preview <owner>/<repo> <pr-number>.

Frequently Asked Questions about github-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch and preview a GitHub pull request locally before merging?

To preview a GitHub pull request locally, you can fetch the PR branch into a dedicated local branch to review its title, status, changed files, and CI status before merging. This allows you to assess changes safely before upstream integration.

Can I run a full test cycle on a GitHub PR locally before pushing upstream?

Yes, you can perform a full test cycle on a GitHub PR locally by fetching, merging, installing dependencies, building, and testing the changes. This validates the pull request completely before contributing upstream.

Do I need the GitHub CLI to merge pull requests and test changes locally?

Yes, you need the GitHub CLI (gh) and git installed to access, fetch, and merge pull requests locally. You also need a local project with remotes configured to validate changes before upstream integration.

What is the best way to check CI status and comments on a pull request locally?

The best way to check CI status and comments on a pull request locally is to use a preview command that fetches PR details including author, status, files changed, CI status, and recent comments for review.

How do I merge a pull request into my current branch and run tests automatically?

To merge a pull request into your current branch and run tests automatically, you can use a merge command that optionally installs dependencies and runs tests to validate the changes locally.

Why do I need to fetch a PR branch locally for code review?

Fetching a PR branch locally is necessary for code review because it creates a dedicated local branch allowing you to preview details, assess changes, and run tests before contributing upstream.