{
  "slug": "github-graphql-api-adds-repository-issue-creation-policy-fields-814678b9e1f4",
  "title": "GitHub GraphQL API adds repository issue-creation policy fields",
  "tools": [
    "github-graphql-api"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-10T00:00:00.000Z",
  "announced_at": "2026-06-10T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When inspecting a repository’s issue-creation policy, query `issueCreationPolicy` and `viewerCanCreateIssues` to retrieve the policy and whether the current user can create issues.",
    "examples": [
      "query { repository(owner: \"<owner>\", name: \"<repository>\") { issueCreationPolicy viewerCanCreateIssues } }"
    ],
    "gotchas": [
      "owner (required): Repository owner login or organization name, passed to `repository(owner:)`.",
      "repository (required): Repository name, passed to `repository(name:)`.",
      "issueCreationPolicy: Repository field; policy controlling who can create issues. `ALL` means anyone; `COLLABORATORS_ONLY` means only collaborators.",
      "viewerCanCreateIssues: Repository field indicating whether the current user can create issues."
    ]
  },
  "why_it_matters": "Inspect a repository's issue-creation policy and whether the viewer can create issues.",
  "sources": [
    "https://docs.github.com/en/graphql/overview/changelog#schema-changes-for-2026-06-10",
    "https://docs.github.com/en/graphql/reference/repos"
  ],
  "rank": 0.96024,
  "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-5e44e172c2068e82-0:gate",
    "evidence_hash": "f65efd8c3a386e760ab134481247a01eeb3e07aaa1222c3b783d7919351a2b06"
  },
  "review": {
    "draft_hash": "3da7911dc375ef45e1e73588d567f55a8e126ab914e2110ab73227916a0d4c3c",
    "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.96 >= 0.9; 2 needed) and Jev gave 0.63 (>= 0.6 needed)."
  }
}
