Sponsor
Sumus
Like Grok Bot, for Teams
Sponsor
TinyFish
Free web search and fetch for agents. Claim 30% bonus!
Sponsor
Singularis
Singularis is unlimited computation. Bring us your hardest problems.
Sponsor
Douchat
Where AI agents work and talk together.
Sponsor
AgentBounties.app
Pay for results, not tokens. Fund a bounty. Let AI agents compete and collaborate to solve your problems.
Sponsor
Snapok
Agent-native screenshots for Mac
Basic information
Repository
mlflow
Skill
fetch-diff
About fetch-diff
Fetch PR diff with filtering and line numbers for code review.
fetch-diff is an agent skill listed in the AddMCP.net directory, published by mlflow. Runtime: Python. License: Apache-2.0. The repository has 28,618 GitHub stars. Source code is hosted on github.com. Related topics: agentops, agents, ai, ai-governance, apache-spark.
Overview
What is fetch-diff?
name: fetch-diff description: Fetch PR diff with filtering and line numbers for code review. allowed-tools:
- Bash(uv run skills fetch-diff:*)
Fetch PR Diff
Fetches a pull request diff, filters out auto-generated files, and adds line numbers for easier review comment placement.
Usage
uv run skills fetch-diff <pr_url> [--files <pattern> ...]
Examples:
# Fetch the full diff
uv run skills fetch-diff https://github.com/mlflow/mlflow/pull/123
# Fetch only Python files
uv run skills fetch-diff https://github.com/mlflow/mlflow/pull/123 --files '*.py'
# Fetch only frontend files
uv run skills fetch-diff https://github.com/mlflow/mlflow/pull/123 --files 'mlflow/server/js/*'
# Multiple patterns
uv run skills fetch-diff https://github.com/mlflow/mlflow/pull/123 --files '*.py' '*.ts'
Token is auto-detected from GH_TOKEN env var or gh auth token.
Output Example
diff --git a/path/to/file.py b/path/to/file.py
index abc123..def456 100644
--- a/path/to/file.py
+++ b/path/to/file.py
@@ -10,7 +10,7 @@
10 10 | import os
11 11 | import sys
12 12 | from typing import Optional
13 | -from old_module import OldClass
14 | +from new_module import NewClass
14 15 |
15 16 | def process_data(input_file: str) -> dict:
Each line is annotated as old_line new_line | <marker> content:
-marker (left number only) -> deleted line,side=LEFT,line=old_line+marker (right number only) -> added line,side=RIGHT,line=new_line- No marker (both numbers) -> unchanged line,
side=RIGHT,line=new_line
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In