From 7f8551308c7b6542b4427232d0457ba93b1559b3 Mon Sep 17 00:00:00 2001 From: docs-bot <77750099+docs-bot@users.noreply.github.com> Date: Mon, 1 Dec 2025 06:39:06 -0800 Subject: [PATCH 1/4] GraphQL schema update (#58611) Co-authored-by: heiskr <1221423+heiskr@users.noreply.github.com> --- src/graphql/data/fpt/changelog.json | 22 +++ src/graphql/data/fpt/schema.docs.graphql | 151 +++++++++++++++-- src/graphql/data/fpt/schema.json | 187 +++++++++++++++++++++- src/graphql/data/ghec/schema.docs.graphql | 151 +++++++++++++++-- src/graphql/data/ghec/schema.json | 187 +++++++++++++++++++++- 5 files changed, 666 insertions(+), 32 deletions(-) diff --git a/src/graphql/data/fpt/changelog.json b/src/graphql/data/fpt/changelog.json index 0ae892d0365e..5735597dbfef 100644 --- a/src/graphql/data/fpt/changelog.json +++ b/src/graphql/data/fpt/changelog.json @@ -1,4 +1,26 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "
Type SuggestedReviewerActor was added
Type SuggestedReviewerActorConnection was added
Type SuggestedReviewerActorEdge was added
Enum value 'ISSUE_FIELD_ADDED_EVENTwas added to enumIssueTimelineItemsItemType'
Enum value 'ISSUE_FIELD_CHANGED_EVENTwas added to enumIssueTimelineItemsItemType'
Enum value 'ISSUE_FIELD_REMOVED_EVENTwas added to enumIssueTimelineItemsItemType'
Field suggestedReviewerActors was added to object type PullRequest
Enum value 'ISSUE_FIELD_ADDED_EVENTwas added to enumPullRequestTimelineItemsItemType'
Enum value 'ISSUE_FIELD_CHANGED_EVENTwas added to enumPullRequestTimelineItemsItemType'
Enum value 'ISSUE_FIELD_REMOVED_EVENTwas added to enumPullRequestTimelineItemsItemType'
Request Copilot code review for new pull requests automatically if the author has access to Copilot code review.
", + "description": "Request Copilot code review for new pull requests automatically if the author\nhas access to Copilot code review and their premium requests quota has not\nreached the limit.
", "fields": [ { "name": "reviewDraftPullRequests", @@ -55187,6 +55187,56 @@ } ] }, + { + "name": "suggestedReviewerActors", + "description": "Reviewer actor suggestions based on commit history, past review comments, and integrations.
", + "type": "SuggestedReviewerActorConnection!", + "id": "suggestedrevieweractorconnection", + "kind": "objects", + "href": "/graphql/reference/objects#suggestedrevieweractorconnection", + "arguments": [ + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.
", + "type": { + "name": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.
", + "type": { + "name": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + }, + { + "name": "first", + "description": "Returns the first n elements from the list.
", + "type": { + "name": "Int", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + }, + { + "name": "last", + "description": "Returns the last n elements from the list.
", + "type": { + "name": "Int", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + } + ] + }, { "name": "suggestedReviewers", "description": "A list of reviewer suggestions based on commit history and past review comments.
", @@ -56134,7 +56184,7 @@ }, { "name": "automaticCopilotCodeReviewEnabled", - "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review.
", + "description": "Request Copilot code review for new pull requests automatically if the author\nhas access to Copilot code review and their premium requests quota has not\nreached the limit.
", "type": "Boolean!", "id": "boolean", "kind": "scalars", @@ -75054,6 +75104,105 @@ } ] }, + { + "name": "SuggestedReviewerActor", + "kind": "objects", + "id": "suggestedrevieweractor", + "href": "/graphql/reference/objects#suggestedrevieweractor", + "description": "A suggestion to review a pull request based on an actor's commit history, review comments, and integrations.
", + "fields": [ + { + "name": "isAuthor", + "description": "Is this suggestion based on past commits?.
", + "type": "Boolean!", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + }, + { + "name": "isCommenter", + "description": "Is this suggestion based on past review comments?.
", + "type": "Boolean!", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + }, + { + "name": "reviewer", + "description": "Identifies the actor suggested to review the pull request.
", + "type": "Actor!", + "id": "actor", + "kind": "interfaces", + "href": "/graphql/reference/interfaces#actor" + } + ] + }, + { + "name": "SuggestedReviewerActorConnection", + "kind": "objects", + "id": "suggestedrevieweractorconnection", + "href": "/graphql/reference/objects#suggestedrevieweractorconnection", + "description": "A suggestion to review a pull request based on an actor's commit history, review comments, and integrations.
", + "fields": [ + { + "name": "edges", + "description": "A list of edges.
", + "type": "[SuggestedReviewerActorEdge]", + "id": "suggestedrevieweractoredge", + "kind": "objects", + "href": "/graphql/reference/objects#suggestedrevieweractoredge" + }, + { + "name": "nodes", + "description": "A list of nodes.
", + "type": "[SuggestedReviewerActor]", + "id": "suggestedrevieweractor", + "kind": "objects", + "href": "/graphql/reference/objects#suggestedrevieweractor" + }, + { + "name": "pageInfo", + "description": "Information to aid in pagination.
", + "type": "PageInfo!", + "id": "pageinfo", + "kind": "objects", + "href": "/graphql/reference/objects#pageinfo" + }, + { + "name": "totalCount", + "description": "Identifies the total count of items in the connection.
", + "type": "Int!", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + ] + }, + { + "name": "SuggestedReviewerActorEdge", + "kind": "objects", + "id": "suggestedrevieweractoredge", + "href": "/graphql/reference/objects#suggestedrevieweractoredge", + "description": "An edge in a connection.
", + "fields": [ + { + "name": "cursor", + "description": "A cursor for use in pagination.
", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "node", + "description": "The item at the end of the edge.
", + "type": "SuggestedReviewerActor", + "id": "suggestedrevieweractor", + "kind": "objects", + "href": "/graphql/reference/objects#suggestedrevieweractor" + } + ] + }, { "name": "Tag", "kind": "objects", @@ -90453,6 +90602,18 @@ "name": "ISSUE_COMMENT", "description": "Represents a comment on an Issue.
" }, + { + "name": "ISSUE_FIELD_ADDED_EVENT", + "description": "Represents aissue_field_addedevent on a given issue.
Represents aissue_field_changedevent on a given issue.
Represents aissue_field_removedevent on a given issue.
Represents aissue_type_addedevent on a given issue.
Represents a comment on an Issue.
" }, + { + "name": "ISSUE_FIELD_ADDED_EVENT", + "description": "Represents aissue_field_addedevent on a given issue.
Represents aissue_field_changedevent on a given issue.
Represents aissue_field_removedevent on a given issue.
Represents aissue_type_addedevent on a given issue.
Request Copilot code review for new pull requests automatically if the author has access to Copilot code review.
" + "description": "Request Copilot code review for new pull requests automatically if the author\nhas access to Copilot code review and their premium requests quota has not\nreached the limit.
" }, { "name": "CREATION", @@ -100474,7 +100647,7 @@ "kind": "inputObjects", "id": "copilotcodereviewparametersinput", "href": "/graphql/reference/input-objects#copilotcodereviewparametersinput", - "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review.
", + "description": "Request Copilot code review for new pull requests automatically if the author\nhas access to Copilot code review and their premium requests quota has not\nreached the limit.
", "inputFields": [ { "name": "reviewDraftPullRequests", @@ -106190,7 +106363,7 @@ }, { "name": "automaticCopilotCodeReviewEnabled", - "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review.
", + "description": "Request Copilot code review for new pull requests automatically if the author\nhas access to Copilot code review and their premium requests quota has not\nreached the limit.
", "type": "Boolean", "id": "boolean", "kind": "scalars", @@ -106499,7 +106672,7 @@ }, { "name": "assigneeIds", - "description": "The id of users to remove as assignees.
", + "description": "The ids of actors to remove as assignees.
", "type": "[ID!]!", "id": "id", "kind": "scalars", @@ -110782,7 +110955,7 @@ "inputFields": [ { "name": "assigneeIds", - "description": "An array of Node IDs of users for this issue.
", + "description": "An array of Node IDs of users or bots for this issue.
", "type": "[ID!]", "id": "id", "kind": "scalars", diff --git a/src/graphql/data/ghec/schema.docs.graphql b/src/graphql/data/ghec/schema.docs.graphql index 9a9a6d015156..a052abfcbb8a 100644 --- a/src/graphql/data/ghec/schema.docs.graphql +++ b/src/graphql/data/ghec/schema.docs.graphql @@ -7335,7 +7335,9 @@ type ConvertedToDiscussionEvent implements Node { } """ -Request Copilot code review for new pull requests automatically if the author has access to Copilot code review. +Request Copilot code review for new pull requests automatically if the author +has access to Copilot code review and their premium requests quota has not +reached the limit. """ type CopilotCodeReviewParameters { """ @@ -7350,7 +7352,9 @@ type CopilotCodeReviewParameters { } """ -Request Copilot code review for new pull requests automatically if the author has access to Copilot code review. +Request Copilot code review for new pull requests automatically if the author +has access to Copilot code review and their premium requests quota has not +reached the limit. """ input CopilotCodeReviewParametersInput { """ @@ -20648,6 +20652,21 @@ enum IssueTimelineItemsItemType { """ ISSUE_COMMENT + """ + Represents a 'issue_field_added' event on a given issue. + """ + ISSUE_FIELD_ADDED_EVENT + + """ + Represents a 'issue_field_changed' event on a given issue. + """ + ISSUE_FIELD_CHANGED_EVENT + + """ + Represents a 'issue_field_removed' event on a given issue. + """ + ISSUE_FIELD_REMOVED_EVENT + """ Represents a 'issue_type_added' event on a given issue. """ @@ -41291,6 +41310,31 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab query: String ): AssigneeConnection! + """ + Reviewer actor suggestions based on commit history, past review comments, and integrations. + """ + suggestedReviewerActors( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + ): SuggestedReviewerActorConnection! + """ A list of reviewer suggestions based on commit history and past review comments. """ @@ -41905,7 +41949,9 @@ type PullRequestParameters { allowedMergeMethods: [PullRequestAllowedMergeMethods!] """ - Request Copilot code review for new pull requests automatically if the author has access to Copilot code review. + Request Copilot code review for new pull requests automatically if the author + has access to Copilot code review and their premium requests quota has not + reached the limit. """ automaticCopilotCodeReviewEnabled: Boolean! @@ -41953,7 +41999,9 @@ input PullRequestParametersInput { allowedMergeMethods: [PullRequestAllowedMergeMethods!] """ - Request Copilot code review for new pull requests automatically if the author has access to Copilot code review. + Request Copilot code review for new pull requests automatically if the author + has access to Copilot code review and their premium requests quota has not + reached the limit. """ automaticCopilotCodeReviewEnabled: Boolean @@ -43519,6 +43567,21 @@ enum PullRequestTimelineItemsItemType { """ ISSUE_COMMENT + """ + Represents a 'issue_field_added' event on a given issue. + """ + ISSUE_FIELD_ADDED_EVENT + + """ + Represents a 'issue_field_changed' event on a given issue. + """ + ISSUE_FIELD_CHANGED_EVENT + + """ + Represents a 'issue_field_removed' event on a given issue. + """ + ISSUE_FIELD_REMOVED_EVENT + """ Represents a 'issue_type_added' event on a given issue. """ @@ -45719,9 +45782,13 @@ input RemoveAssigneesFromAssignableInput { assignableId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "Assignable") """ - The id of users to remove as assignees. + The ids of actors to remove as assignees. """ - assigneeIds: [ID!]! @possibleTypes(concreteTypes: ["User"]) + assigneeIds: [ID!]! + @possibleTypes( + concreteTypes: ["Bot", "EnterpriseUserAccount", "Mannequin", "Organization", "User"] + abstractType: "Actor" + ) """ A unique identifier for the client performing the mutation. @@ -53261,7 +53328,9 @@ enum RepositoryRuleType { COMMIT_MESSAGE_PATTERN """ - Request Copilot code review for new pull requests automatically if the author has access to Copilot code review. + Request Copilot code review for new pull requests automatically if the author + has access to Copilot code review and their premium requests quota has not + reached the limit. """ COPILOT_CODE_REVIEW @@ -60390,6 +60459,66 @@ type SuggestedReviewer { reviewer: User! } +""" +A suggestion to review a pull request based on an actor's commit history, review comments, and integrations. +""" +type SuggestedReviewerActor { + """ + Is this suggestion based on past commits? + """ + isAuthor: Boolean! + + """ + Is this suggestion based on past review comments? + """ + isCommenter: Boolean! + + """ + Identifies the actor suggested to review the pull request. + """ + reviewer: Actor! +} + +""" +A suggestion to review a pull request based on an actor's commit history, review comments, and integrations. +""" +type SuggestedReviewerActorConnection { + """ + A list of edges. + """ + edges: [SuggestedReviewerActorEdge] + + """ + A list of nodes. + """ + nodes: [SuggestedReviewerActor] + + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} + +""" +An edge in a connection. +""" +type SuggestedReviewerActorEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: SuggestedReviewerActor +} + """ Represents a Git tag. """ @@ -65626,9 +65755,13 @@ Autogenerated input type of UpdateIssue """ input UpdateIssueInput { """ - An array of Node IDs of users for this issue. + An array of Node IDs of users or bots for this issue. """ - assigneeIds: [ID!] @possibleTypes(concreteTypes: ["User"]) + assigneeIds: [ID!] + @possibleTypes( + concreteTypes: ["Bot", "EnterpriseUserAccount", "Mannequin", "Organization", "User"] + abstractType: "Actor" + ) """ The body for the issue description. diff --git a/src/graphql/data/ghec/schema.json b/src/graphql/data/ghec/schema.json index 534ae6d97d30..4766206c9fcc 100644 --- a/src/graphql/data/ghec/schema.json +++ b/src/graphql/data/ghec/schema.json @@ -17559,7 +17559,7 @@ "kind": "objects", "id": "copilotcodereviewparameters", "href": "/graphql/reference/objects#copilotcodereviewparameters", - "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review.
", + "description": "Request Copilot code review for new pull requests automatically if the author\nhas access to Copilot code review and their premium requests quota has not\nreached the limit.
", "fields": [ { "name": "reviewDraftPullRequests", @@ -55187,6 +55187,56 @@ } ] }, + { + "name": "suggestedReviewerActors", + "description": "Reviewer actor suggestions based on commit history, past review comments, and integrations.
", + "type": "SuggestedReviewerActorConnection!", + "id": "suggestedrevieweractorconnection", + "kind": "objects", + "href": "/graphql/reference/objects#suggestedrevieweractorconnection", + "arguments": [ + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.
", + "type": { + "name": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.
", + "type": { + "name": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + } + }, + { + "name": "first", + "description": "Returns the first n elements from the list.
", + "type": { + "name": "Int", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + }, + { + "name": "last", + "description": "Returns the last n elements from the list.
", + "type": { + "name": "Int", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + } + ] + }, { "name": "suggestedReviewers", "description": "A list of reviewer suggestions based on commit history and past review comments.
", @@ -56134,7 +56184,7 @@ }, { "name": "automaticCopilotCodeReviewEnabled", - "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review.
", + "description": "Request Copilot code review for new pull requests automatically if the author\nhas access to Copilot code review and their premium requests quota has not\nreached the limit.
", "type": "Boolean!", "id": "boolean", "kind": "scalars", @@ -75054,6 +75104,105 @@ } ] }, + { + "name": "SuggestedReviewerActor", + "kind": "objects", + "id": "suggestedrevieweractor", + "href": "/graphql/reference/objects#suggestedrevieweractor", + "description": "A suggestion to review a pull request based on an actor's commit history, review comments, and integrations.
", + "fields": [ + { + "name": "isAuthor", + "description": "Is this suggestion based on past commits?.
", + "type": "Boolean!", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + }, + { + "name": "isCommenter", + "description": "Is this suggestion based on past review comments?.
", + "type": "Boolean!", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + }, + { + "name": "reviewer", + "description": "Identifies the actor suggested to review the pull request.
", + "type": "Actor!", + "id": "actor", + "kind": "interfaces", + "href": "/graphql/reference/interfaces#actor" + } + ] + }, + { + "name": "SuggestedReviewerActorConnection", + "kind": "objects", + "id": "suggestedrevieweractorconnection", + "href": "/graphql/reference/objects#suggestedrevieweractorconnection", + "description": "A suggestion to review a pull request based on an actor's commit history, review comments, and integrations.
", + "fields": [ + { + "name": "edges", + "description": "A list of edges.
", + "type": "[SuggestedReviewerActorEdge]", + "id": "suggestedrevieweractoredge", + "kind": "objects", + "href": "/graphql/reference/objects#suggestedrevieweractoredge" + }, + { + "name": "nodes", + "description": "A list of nodes.
", + "type": "[SuggestedReviewerActor]", + "id": "suggestedrevieweractor", + "kind": "objects", + "href": "/graphql/reference/objects#suggestedrevieweractor" + }, + { + "name": "pageInfo", + "description": "Information to aid in pagination.
", + "type": "PageInfo!", + "id": "pageinfo", + "kind": "objects", + "href": "/graphql/reference/objects#pageinfo" + }, + { + "name": "totalCount", + "description": "Identifies the total count of items in the connection.
", + "type": "Int!", + "id": "int", + "kind": "scalars", + "href": "/graphql/reference/scalars#int" + } + ] + }, + { + "name": "SuggestedReviewerActorEdge", + "kind": "objects", + "id": "suggestedrevieweractoredge", + "href": "/graphql/reference/objects#suggestedrevieweractoredge", + "description": "An edge in a connection.
", + "fields": [ + { + "name": "cursor", + "description": "A cursor for use in pagination.
", + "type": "String!", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "node", + "description": "The item at the end of the edge.
", + "type": "SuggestedReviewerActor", + "id": "suggestedrevieweractor", + "kind": "objects", + "href": "/graphql/reference/objects#suggestedrevieweractor" + } + ] + }, { "name": "Tag", "kind": "objects", @@ -90453,6 +90602,18 @@ "name": "ISSUE_COMMENT", "description": "Represents a comment on an Issue.
" }, + { + "name": "ISSUE_FIELD_ADDED_EVENT", + "description": "Represents aissue_field_addedevent on a given issue.
Represents aissue_field_changedevent on a given issue.
Represents aissue_field_removedevent on a given issue.
Represents aissue_type_addedevent on a given issue.
Represents a comment on an Issue.
" }, + { + "name": "ISSUE_FIELD_ADDED_EVENT", + "description": "Represents aissue_field_addedevent on a given issue.
Represents aissue_field_changedevent on a given issue.
Represents aissue_field_removedevent on a given issue.
Represents aissue_type_addedevent on a given issue.
Request Copilot code review for new pull requests automatically if the author has access to Copilot code review.
" + "description": "Request Copilot code review for new pull requests automatically if the author\nhas access to Copilot code review and their premium requests quota has not\nreached the limit.
" }, { "name": "CREATION", @@ -100474,7 +100647,7 @@ "kind": "inputObjects", "id": "copilotcodereviewparametersinput", "href": "/graphql/reference/input-objects#copilotcodereviewparametersinput", - "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review.
", + "description": "Request Copilot code review for new pull requests automatically if the author\nhas access to Copilot code review and their premium requests quota has not\nreached the limit.
", "inputFields": [ { "name": "reviewDraftPullRequests", @@ -106190,7 +106363,7 @@ }, { "name": "automaticCopilotCodeReviewEnabled", - "description": "Request Copilot code review for new pull requests automatically if the author has access to Copilot code review.
", + "description": "Request Copilot code review for new pull requests automatically if the author\nhas access to Copilot code review and their premium requests quota has not\nreached the limit.
", "type": "Boolean", "id": "boolean", "kind": "scalars", @@ -106499,7 +106672,7 @@ }, { "name": "assigneeIds", - "description": "The id of users to remove as assignees.
", + "description": "The ids of actors to remove as assignees.
", "type": "[ID!]!", "id": "id", "kind": "scalars", @@ -110782,7 +110955,7 @@ "inputFields": [ { "name": "assigneeIds", - "description": "An array of Node IDs of users for this issue.
", + "description": "An array of Node IDs of users or bots for this issue.
", "type": "[ID!]", "id": "id", "kind": "scalars", From 735394822aed810a20da218d9c35661317b213e0 Mon Sep 17 00:00:00 2001 From: Kensuke Nagae