{
  "slug": "github-graphql-adds-teamdiscussion-queries-and-mutations-c1b305dbfa04",
  "title": "GitHub GraphQL adds TeamDiscussion queries and mutations",
  "tools": [
    "github-graphql-api"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-06T00:00:00.000Z",
  "announced_at": "2026-01-06T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "If your target schema includes the Team Discussions fields, use the `Team.discussion` or `Team.discussions` fields to read discussions and the `createTeamDiscussion`, `updateTeamDiscussion`, or `deleteTeamDiscussion` mutations to change them. The current changelog documents these fields as removed on 2026-01-08, so check the schema available to your target before using them.",
    "examples": [
      "mutation { createTeamDiscussion(input: { teamId: \"<team-node-id>\", title: \"<title>\", body: \"<markdown-body>\", private: false }) { teamDiscussion { id number title body } } }",
      "mutation { updateTeamDiscussion(input: { id: \"<discussion-node-id>\", title: \"<title>\", body: \"<markdown-body>\", pinned: false }) { teamDiscussion { id number title body isPinned } } }",
      "query { team(slug: \"<org>/<team>\") { discussion(number: <number>) { id number title body } discussions(first: 10, isPinned: false) { nodes { id number title body } pageInfo { hasNextPage endCursor } } } }"
    ],
    "gotchas": [
      "CreateTeamDiscussionInput.teamId (required): Team node ID.",
      "CreateTeamDiscussionInput.title (required): Discussion title.",
      "CreateTeamDiscussionInput.body: Discussion body.",
      "CreateTeamDiscussionInput.private: Whether the discussion is private.",
      "CreateTeamDiscussionInput.clientMutationId: Client identifier for the mutation.",
      "UpdateTeamDiscussionInput.id (required): Discussion node ID.",
      "UpdateTeamDiscussionInput.title: Discussion title.",
      "UpdateTeamDiscussionInput.body: Discussion body.",
      "UpdateTeamDiscussionInput.bodyVersion: Body version value.",
      "UpdateTeamDiscussionInput.pinned: Whether the discussion is pinned.",
      "UpdateTeamDiscussionInput.clientMutationId: Client identifier for the mutation.",
      "DeleteTeamDiscussionInput.id (required): Discussion node ID to delete.",
      "DeleteTeamDiscussionInput.clientMutationId: Client identifier for the mutation.",
      "Team.discussion.number (required): Sequence number of the discussion to fetch.",
      "Team.discussions.after: Cursor after which to return connection items.",
      "Team.discussions.before: Cursor before which to return connection items.",
      "Team.discussions.first: Return the first n connection items.",
      "Team.discussions.last: Return the last n connection items.",
      "Team.discussions.isPinned: Filter discussions by pinned status.",
      "Team.discussions.orderBy: Order the discussion connection.",
      "Prerequisite: GraphQL API requests require authentication; the discussions guide documents `repo` scope for private repositories and `public_repo` scope for public repositories.",
      "Docs conflict: GitHub's GraphQL changelog lists the team-discussion types, mutations, and Team fields as removed on 2026-01-08, two days after the card's stated change date. Confirm the target schema before acting; the current documentation does not support treating these as continuously available.",
      "Docs conflict: The available Team Discussions reference is for GitHub Enterprise Server 3.20; its schema may differ from GitHub.com."
    ]
  },
  "why_it_matters": "Create, update, delete, or query team discussions through the GitHub GraphQL API.",
  "sources": [
    "https://docs.github.com/en/graphql/overview/changelog#schema-changes-for-2026-01-06",
    "https://docs.github.com/en/enterprise-server%403.20/graphql/reference/other",
    "https://docs.github.com/en/enterprise-server%403.20/graphql/reference/teams",
    "https://docs.github.com/en/graphql/guides/using-the-graphql-api-for-discussions"
  ],
  "rank": 0.98032,
  "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-878698ad237eba85-0:gate",
    "evidence_hash": "f89aa23e3ea1282b9c8e4939dd5e4e3c204ebbfc1471fc779d5095c2e491864c"
  },
  "review": {
    "draft_hash": "f46fe52fd0913a6a2f4fe05da32f623094d9f56bec632ca13eb742fb0e9f3eb1",
    "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.98 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
