Afficher les différences de pull request

VérifiéSûr

Affiche les différences de code (diff) d'une pull request, avec statistiques et fichiers modifiés. Utile pour examiner les changements, comprendre la portée des modifications ou analyser un fichier spécifique avant approbation.

Spar Skills Guide Bot
DeveloppementDébutant
12002/06/2026
Claude Code
#pull-request#diff#code-review#git

Recommandé pour

Notre avis

Permet de visualiser les différences d'une pull request avec des options pour obtenir un résumé ou se concentrer sur des fichiers spécifiques.

Points forts

  • Offre une vue d'ensemble rapide avec --stat
  • Permet de filtrer par fichier avec --file
  • Détection automatique de la PR à partir de la branche courante
  • Support du téléchargement automatique des branches manquantes

Limites

  • Nécessite un dépôt Git configuré avec une télécommande
  • Peut être lent pour de très grandes PR
  • Ne permet pas de commenter ou d'approuver la PR directement
Quand l'utiliser

Utilisez cette compétence lorsque vous devez examiner le contenu d'une pull request, comprendre les modifications apportées ou préparer une revue de code.

Quand l'éviter

Évitez de l'utiliser si vous avez besoin de commenter sur la PR ou de l'approuver ; préférez alors les compétences dédiées aux commentaires ou à la validation.

Analyse de sécurité

Sûr
Score qualité88/100

The skill exclusively runs `aide pr diff` commands, which are read-only and display pull request changes. No destructive actions, data exfiltration, or execution of arbitrary code is involved.

Aucun point d'attention détecté

Exemples

Show PR diff overview
Show me the changes in the current pull request with statistics.
List changed files in a PR
What files were modified in PR #42?
Show diff for a specific file
Show the diff for the file src/auth/login.ts in this PR.

name: pr-diff description: View pull request diff and code changes. Use when the user wants to see what changed in a PR, review code changes, understand the scope of modifications, or examine specific file changes. allowed-tools: Bash(aide:*)

View Pull Request Diff

View changes in a pull request including file diffs and change statistics.

When to Use

  • User asks "what changed?" or "show me the changes"
  • User wants to review code before approving
  • User needs to understand the scope of modifications
  • User wants to see a specific file's changes

How to Execute

Run:

aide pr diff [--pr <id|url>] [options]

Options

| Flag | Description | |-------------|-------------------------------------------------------| | --pr | PR ID or URL (auto-detected from branch if omitted) | | --stat | Show summary statistics with line counts | | --files | Show only changed file paths | | --file | Show diff for a specific file path | | --no-fetch| Skip auto-fetching missing branches (fetch by default)|

Output Includes

  1. Source and target branches
  2. Changed files with +/- line counts (with --stat)
  3. Full unified diff output (default)
  4. File list only (with --files)

Best Practices

  • Start with --stat to get an overview of changes
  • Use --files to see which files were modified
  • Focus on specific files with --file <path> for detailed review
  • Auto-fetch is enabled by default - use --no-fetch if branches are already local

Progressive Review Pattern

# 1. Get overview of changes
aide pr diff --stat

# 2. See which files changed
aide pr diff --files

# 3. Review specific file
aide pr diff --file src/auth/login.ts

Next Steps

After viewing PR diff:

  • Use pr-comments skill to see related feedback
  • Use pr-view skill for PR metadata
Skills similaires