{
  "slug": "gh-pr-diff-excludes-selected-files-from-diff-output-e9ae326eaa46",
  "title": "gh pr diff excludes selected files from diff output",
  "tools": [
    "gh"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-10T19:40:45.000Z",
  "announced_at": "2026-03-10T19:40:45.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When reviewing a pull request, run `gh pr diff` with `--exclude` for each glob pattern to omit matching files from the diff output.",
    "examples": [
      "gh pr diff <number> --exclude '*.yml' --exclude 'generated/*'"
    ],
    "gotchas": [
      "Version: v2.88.0",
      "<number>: Pull request number; without an argument, selects the pull request for the current branch.",
      "-e, --exclude <patterns>: Exclude files matching glob patterns; repeat the flag for multiple patterns. Patterns use forward slashes as path separators on all platforms."
    ]
  },
  "why_it_matters": "Review a pull request diff while omitting selected files from its output.",
  "sources": [
    "https://github.com/cli/cli/releases/tag/v2.88.0",
    "https://cli.github.com/manual/gh_pr_diff"
  ],
  "rank": 0.94034,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-5cebced2cbd56609-4:gate",
    "evidence_hash": "588ebed23042735e024c4fc5688de7c649d9ef35fbf44996438937d6c7da4751"
  },
  "review": {
    "draft_hash": "225e432827a57c2315c66bdc83867bed148c37d797c97b127f41b3b1d5c256e3",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.71 (>= 0.6 needed)."
  }
}
