{
  "slug": "github-graphql-api-adds-issue-relates-to-queries-and-mutations-b5d08f86ca2d",
  "title": "GitHub GraphQL API adds issue relates-to queries and mutations",
  "tools": [
    "github-graphql-api"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-28T00:00:00.000Z",
  "announced_at": "2026-09-28T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When managing related issues through GitHub’s GraphQL API, query `Issue.relatesTo` with pagination and ordering, or use `addRelatesTo` and `removeRelatesTo` to change a relationship.",
    "examples": [
      "query { node(id: \"<issue-id>\") { ... on Issue { relatesTo(first: 20, orderBy: {field: RELATES_TO_ADDED_AT, direction: DESC}) { nodes { id } pageInfo { endCursor hasNextPage } } } } }",
      "mutation { addRelatesTo(input: {issueId: \"<issue-id>\", relatedIssueId: \"<related-issue-id>\"}) { issue { id } relatedIssue { id } } }",
      "mutation { removeRelatesTo(input: {issueId: \"<issue-id>\", relatedIssueId: \"<related-issue-id>\"}) { issue { id } relatedIssue { id } } }"
    ],
    "gotchas": [
      "Issue.relatesTo.first: Return the first n related issues.",
      "Issue.relatesTo.last: Return the last n related issues.",
      "Issue.relatesTo.after: Return elements after the specified cursor.",
      "Issue.relatesTo.before: Return elements before the specified cursor.",
      "Issue.relatesTo.orderBy: Ordering options for related issues.",
      "IssueRelatesToOrder.field (required): Order by `CREATED_AT` (related issue creation time) or `RELATES_TO_ADDED_AT` (when the relationship was added).",
      "IssueRelatesToOrder.direction (required): Ordering direction (`OrderDirection!`).",
      "AddRelatesToInput.issueId (required): ID of the issue.",
      "AddRelatesToInput.relatedIssueId (required): ID of the related issue.",
      "AddRelatesToInput.clientMutationId: Client mutation identifier.",
      "RemoveRelatesToInput.issueId (required): ID of the issue.",
      "RemoveRelatesToInput.relatedIssueId (required): ID of the previously related issue.",
      "RemoveRelatesToInput.clientMutationId: Unique identifier for the client performing the mutation."
    ]
  },
  "why_it_matters": "Manage related issues while updating a repository's issue data through the GraphQL API.",
  "sources": [
    "https://docs.github.com/en/graphql/overview/changelog#schema-changes-for-2026-09-28",
    "https://docs.github.com/en/graphql/reference/issues"
  ],
  "rank": 0.97032,
  "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-79cd83cab3fb7d6f-0:gate",
    "evidence_hash": "81028b7937a1e70e1f6986b72796bb4335c98ded2e67e501d24221bf06741fec"
  },
  "review": {
    "draft_hash": "28ca0ea4a694729bdfdc45ffa276c4429e66c2b9331cea64f6758995ff17ae1b",
    "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)."
  }
}
