首页/ AI 技能 / @skilllib/skill-2117939930272415319
Skill站外收录 @skilllib/skill-2117939930272415319

fetch-diff

获取 Pull Request 的代码差异内容,自动过滤掉自动生成的文件,并为每一行添加原始和更新后的行号标记,便于在具体代码位置添加评审意见。

0.0 (0) 28 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# Fetch PR Diff Fetches a pull request diff, filters out auto-generated files, and adds line numbers for easier review comment placement. ## Usage ```bash uv run skills fetch-diff <pr_url> ``` Example: ```bash uv run skills fetch-diff https://github.com/mlflow/mlflow/pull/123 ``` 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: ```

评论 0

还没有评论,来抢沙发。