{
  "slug": "github-mcp-server-pins-merge-pull-request-with-expectedheadsha-945b8ae63e15",
  "title": "github-mcp-server pins merge_pull_request with expectedHeadSha",
  "tools": [
    "github-mcp-server"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-03T14:05:12.000Z",
  "announced_at": "2026-09-03T14:05:12.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When merging a pull request only if its head still matches a known commit, call `merge_pull_request` with that commit’s SHA in `expectedHeadSha`.",
    "examples": [
      "{\"owner\":\"<owner>\",\"repo\":\"<repo>\",\"pullNumber\":<pull_number>,\"expectedHeadSha\":\"<expected_head_sha>\"}"
    ],
    "gotchas": [
      "Version: v1.12.0",
      "owner (required): Repository owner.",
      "repo (required): Repository name.",
      "pullNumber (required): Pull request number.",
      "expectedHeadSha: Expected SHA of the pull request’s HEAD ref.",
      "commit_message: Extra detail for the merge commit.",
      "commit_title: Title for the merge commit.",
      "merge_method: Merge method.",
      "Prerequisite: The tool requires OAuth challenge scope `repo`.",
      "The release does not specify the behavior when the expected head SHA does not match."
    ]
  },
  "why_it_matters": "Merge a pull request only if its head still matches the expected commit.",
  "sources": [
    "https://github.com/github/github-mcp-server/releases/tag/v1.12.0",
    "https://github.com/github/github-mcp-server/blob/v1.12.0/README.md"
  ],
  "rank": 0.98042,
  "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": "augsep-20261008",
    "verdict_id": "augsep-20261008:augsep-20261008-af2027d1ea4f82fe-4:gate",
    "evidence_hash": "7ae7f4414be62c47eb5b820c10d43565153fbc3a8a2fa6e215eef31f124b2a8d"
  },
  "review": {
    "draft_hash": "7d180d04b8dcb5f6f089920e2aa04d28d10ec83bbbc38c4e7cf1f646de034a52",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "augsep-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.68 (>= 0.6 needed)."
  }
}
