{
  "slug": "github-graphql-api-adds-close-issue-references-44cf23e5e8c0",
  "title": "GitHub GraphQL API adds close-issue references",
  "tools": [
    "github-graphql-api"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-26T00:00:00.000Z",
  "announced_at": "2026-08-26T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When linking pull requests as manual closing references, call `addCloseIssueReferences` on an issue with the issue ID and up to 10 pull request IDs. Select the returned `issue` to read the updated issue.",
    "examples": [
      "mutation { addCloseIssueReferences(input: { issueId: \"<issue-node-id>\", pullRequestIds: [\"<pull-request-node-id>\"] }) { issue { id } } }"
    ],
    "gotchas": [
      "input (required): `AddCloseIssueReferencesInput!` for the mutation.",
      "issueId (required): ID of the issue to add closing references to; the target must be an issue, not a pull request.",
      "pullRequestIds (required): IDs of pull requests to link as closing references; limit 10.",
      "clientMutationId: Unique identifier for the client performing the mutation.",
      "issue: Returned issue the closing references were added to; select fields such as `id` in the mutation.",
      "Prerequisite: Send a POST request to `https://api.github.com/graphql` with an `Authorization: Bearer <TOKEN>` header; use a GitHub personal access token."
    ]
  },
  "why_it_matters": "Update issue-linked pull request references in a repository using the GraphQL API.",
  "sources": [
    "https://docs.github.com/en/graphql/overview/changelog#schema-changes-for-2026-08-26",
    "https://docs.github.com/en/graphql/reference/issues",
    "https://docs.github.com/en/graphql/guides/using-graphql-clients"
  ],
  "rank": 0.91024,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-tools-20261017",
    "verdict_id": "wave1b-tools-20261017:wave1b-tools-20261017-a2ae5651eff152b9-0:gate",
    "evidence_hash": "a83753ef72abd09d28967e43b2a8a6fa88fc55523a48b25a66409ee23108e852"
  },
  "review": {
    "draft_hash": "f4e421bdacc91f6569c63a2cd904661b85753588e701b3f239d590b18f557750",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.91 >= 0.9; 2 needed) and Jev gave 0.67 (>= 0.6 needed)."
  }
}
