pr-diff-fetcher

Fetch pull request diffs, metadata, and commit messages via GitHub CLI or API.

349|98|Updated Feb 1, 2018
One-click install
npx skills add https://github.com/shopsys/shopsys --skill pr-diff-fetcher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr-diff-fetcher
Source: https://github.com/shopsys/shopsys/tree/main/.agents/skills/pull-request-diff-fetcher
Command: npx skills add https://github.com/shopsys/shopsys --skill pr-diff-fetcher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the retrieval of comprehensive pull request data, including code differences, metadata, and commit history, streamlining code review and analysis processes.

Core Features & Use Cases

  • Automated Data Retrieval: Fetches PR diffs, titles, bodies, labels, and commit messages using preferred methods (GitHub CLI, GitHub API, or local Git).
  • Cross-Platform Compatibility: Supports multiple methods for fetching data, ensuring functionality even if preferred tools are unavailable.
  • Use Case: A developer needs to quickly understand the changes in a large pull request for a code review. They can use this Skill to get the complete diff, a summary of the changes, and identify any "move" operations within the commit history.

Quick Start

Use the pr-diff-fetcher skill to get all data for pull request number 4183.

Frequently Asked Questions about pr-diff-fetcher

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

FAQPage Schema
How do I fetch a pull request diff and metadata for code review?

To fetch a pull request diff and metadata for code review, you can use a tool that retrieves the complete diff, base branch, title, body, labels, and commit messages. This automates the extraction of comprehensive PR data to streamline analysis.

What is the best way to get pull request commits and changes from a URL?

The best way to get pull request commits and changes from a URL is to use an automated fetcher that accepts a PR URL as input. It extracts the complete code differences and commit history, prioritizing GitHub CLI and falling back to the GitHub API.

Does the PR fetcher work without the GitHub CLI installed?

Yes, the PR fetcher works without the GitHub CLI installed by falling back to the GitHub API via WebFetch. If neither is available, it uses local Git for current branch analysis to ensure cross-platform compatibility.

Can I retrieve code differences for the current Git branch instead of a PR number?

Yes, you can retrieve code differences for the current Git branch by providing "current-branch" as the input. The fetcher uses local Git to analyze the current branch and extract the relevant pull request data.

What pull request data formats can I use as input to fetch a diff?

You can use various input formats to fetch a pull request diff, including a direct PR URL, a PR number, or the keyword "current-branch". The tool processes these inputs to retrieve comprehensive data like metadata and commit messages.