{
  "slug": "github-graphql-api-adds-the-unarchivepullrequest-mutation-1d747e0546c8",
  "title": "GitHub GraphQL API adds the unarchivePullRequest mutation",
  "tools": [
    "github-graphql-api"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-15T00:00:00.000Z",
  "announced_at": "2026-04-15T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "If the pull request is archived, send `unarchivePullRequest` with its node ID. The mutation removes the archived flag but does not reopen or unlock the pull request.",
    "examples": [
      "curl -H \"Authorization: bearer <TOKEN>\" -X POST -d '{\"query\":\"mutation { unarchivePullRequest(input: {pullRequestId: \\\"<PULL_REQUEST_NODE_ID>\\\"}) { pullRequest { id } clientMutationId } }\"}' https://api.github.com/graphql"
    ],
    "gotchas": [
      "input (required): `UnarchivePullRequestInput!` argument to `unarchivePullRequest`.",
      "pullRequestId (required): `ID!` identifying the pull request to unarchive.",
      "clientMutationId: Optional `String` input field; the payload also offers a `clientMutationId` return field.",
      "pullRequest: Optional payload field returning the unarchived pull request.",
      "Prerequisite: Authenticate to the GraphQL API with a personal access token, GitHub App, or OAuth app; the needed permissions depend on the requested data. Users with the triage role or higher can unarchive pull requests."
    ]
  },
  "why_it_matters": "Unarchive a pull request through the GitHub GraphQL API.",
  "sources": [
    "https://docs.github.com/en/graphql/overview/changelog#schema-changes-for-2026-04-15",
    "https://docs.github.com/en/graphql/guides/forming-calls-with-graphql",
    "https://docs.github.com/en/graphql/reference/pulls"
  ],
  "rank": 0.97021,
  "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-78d95328de4e94e7-1:gate",
    "evidence_hash": "198634b5fc18e658befa1cc58bad91aa7156c08dd19ffe3ad5c8227cfb911665"
  },
  "review": {
    "draft_hash": "a142768aa73357256f7a8579425cfca36d1a1f3a57e19c41e4f2d0fbc527ae09",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.77 (>= 0.6 needed)."
  }
}
