GitHub GraphQL API adds close-issue references
Introduced 2026-08-26 · score 0.91
HOW TO USE IT
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.
mutation { addCloseIssueReferences(input: { issueId: "<issue-node-id>", pullRequestIds: ["<pull-request-node-id>"] }) { issue { id } } }WHY THIS HELPS
Update issue-linked pull request references in a repository using the GraphQL API.
REQUIREMENTS AND LIMITATIONS
- 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.
FIRST-PARTY EVIDENCE
- 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
Check the installed version and the source before using it. Entry JSON