diff --git a/src/graphql/data/fpt/changelog.json b/src/graphql/data/fpt/changelog.json index 0aea7cdd403e..bc8c2ad61be8 100644 --- a/src/graphql/data/fpt/changelog.json +++ b/src/graphql/data/fpt/changelog.json @@ -1,4 +1,25 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "

Type AgentAssignmentInput was added

", + "

Input field baseRef of type String was added to input object type AgentAssignmentInput

", + "

Input field customAgent of type String was added to input object type AgentAssignmentInput

", + "

Input field customInstructions of type String was added to input object type AgentAssignmentInput

", + "

Input field targetRepositoryId of type ID was added to input object type AgentAssignmentInput

", + "

Input field agentAssignment of type AgentAssignmentInput was added to input object type AddAssigneesToAssignableInput

", + "

Input field agentAssignment of type AgentAssignmentInput was added to input object type CreateIssueInput

", + "

Input field agentAssignment of type AgentAssignmentInput was added to input object type ReplaceActorsForAssignableInput

", + "

Input field agentAssignment of type AgentAssignmentInput was added to input object type UpdateIssueInput

" + ] + } + ], + "previewChanges": [], + "upcomingChanges": [], + "date": "2026-02-07" + }, { "schemaChanges": [ { diff --git a/src/graphql/data/fpt/schema.docs.graphql b/src/graphql/data/fpt/schema.docs.graphql index 56c7ce992f72..ef8fbeeede32 100644 --- a/src/graphql/data/fpt/schema.docs.graphql +++ b/src/graphql/data/fpt/schema.docs.graphql @@ -355,6 +355,11 @@ enum ActorType { Autogenerated input type of AddAssigneesToAssignable """ input AddAssigneesToAssignableInput { + """ + Configuration for assigning Copilot to this issue. + """ + agentAssignment: AgentAssignmentInput + """ The id of the assignable object to add assignees to. """ @@ -1418,6 +1423,31 @@ type AddedToProjectV2Event implements Node & ProjectV2Event { wasAutomated: Boolean! } +""" +Represents configuration for assigning Copilot to an issue (public variant) +""" +input AgentAssignmentInput { + """ + The base ref/branch for the repository. Defaults to the default branch if not provided. + """ + baseRef: String + + """ + Custom agent for Copilot. + """ + customAgent: String + + """ + Custom instructions for Copilot. + """ + customInstructions: String + + """ + The Node ID of the target repository where Copilot should work. Defaults to the issue's repository if not provided. + """ + targetRepositoryId: ID @possibleTypes(concreteTypes: ["Repository"]) +} + """ Copilot Agentic fields in context of the current viewer. """ @@ -8139,6 +8169,11 @@ type CreateIpAllowListEntryPayload { Autogenerated input type of CreateIssue """ input CreateIssueInput { + """ + Configuration for assigning Copilot to this issue. + """ + agentAssignment: AgentAssignmentInput + """ The Node ID of assignees for this issue. """ @@ -46681,6 +46716,11 @@ input ReplaceActorsForAssignableInput { """ actorLogins: [String!] + """ + Configuration for assigning an AI agent to this issue. + """ + agentAssignment: AgentAssignmentInput + """ The id of the assignable object to replace the assignees for. """ @@ -65414,6 +65454,11 @@ type UpdateIssueCommentPayload { Autogenerated input type of UpdateIssue """ input UpdateIssueInput { + """ + Configuration for assigning an AI agent to this issue. + """ + agentAssignment: AgentAssignmentInput + """ An array of Node IDs of users or bots for this issue. """ diff --git a/src/graphql/data/fpt/schema.json b/src/graphql/data/fpt/schema.json index 223d096c68bf..8f057ec3559a 100644 --- a/src/graphql/data/fpt/schema.json +++ b/src/graphql/data/fpt/schema.json @@ -97653,6 +97653,14 @@ "href": "/graphql/reference/input-objects#addassigneestoassignableinput", "description": "

Autogenerated input type of AddAssigneesToAssignable.

", "inputFields": [ + { + "name": "agentAssignment", + "description": "

Configuration for assigning Copilot to this issue.

", + "type": "AgentAssignmentInput", + "id": "agentassignmentinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#agentassignmentinput" + }, { "name": "assignableId", "description": "

The id of the assignable object to add assignees to.

", @@ -98549,6 +98557,48 @@ } ] }, + { + "name": "AgentAssignmentInput", + "kind": "inputObjects", + "id": "agentassignmentinput", + "href": "/graphql/reference/input-objects#agentassignmentinput", + "description": "

Represents configuration for assigning Copilot to an issue (public variant).

", + "inputFields": [ + { + "name": "baseRef", + "description": "

The base ref/branch for the repository. Defaults to the default branch if not provided.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "customAgent", + "description": "

Custom agent for Copilot.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "customInstructions", + "description": "

Custom instructions for Copilot.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "targetRepositoryId", + "description": "

The Node ID of the target repository where Copilot should work. Defaults to the issue's repository if not provided.

", + "type": "ID", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + } + ] + }, { "name": "ApproveDeploymentsInput", "kind": "inputObjects", @@ -100884,6 +100934,14 @@ "href": "/graphql/reference/input-objects#createissueinput", "description": "

Autogenerated input type of CreateIssue.

", "inputFields": [ + { + "name": "agentAssignment", + "description": "

Configuration for assigning Copilot to this issue.

", + "type": "AgentAssignmentInput", + "id": "agentassignmentinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#agentassignmentinput" + }, { "name": "assigneeIds", "description": "

The Node ID of assignees for this issue.

", @@ -106572,6 +106630,14 @@ "kind": "scalars", "href": "/graphql/reference/scalars#string" }, + { + "name": "agentAssignment", + "description": "

Configuration for assigning an AI agent to this issue.

", + "type": "AgentAssignmentInput", + "id": "agentassignmentinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#agentassignmentinput" + }, { "name": "assignableId", "description": "

The id of the assignable object to replace the assignees for.

", @@ -110360,6 +110426,14 @@ "href": "/graphql/reference/input-objects#updateissueinput", "description": "

Autogenerated input type of UpdateIssue.

", "inputFields": [ + { + "name": "agentAssignment", + "description": "

Configuration for assigning an AI agent to this issue.

", + "type": "AgentAssignmentInput", + "id": "agentassignmentinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#agentassignmentinput" + }, { "name": "assigneeIds", "description": "

An array of Node IDs of users or bots for this issue.

", diff --git a/src/graphql/data/ghec/schema.docs.graphql b/src/graphql/data/ghec/schema.docs.graphql index 56c7ce992f72..ef8fbeeede32 100644 --- a/src/graphql/data/ghec/schema.docs.graphql +++ b/src/graphql/data/ghec/schema.docs.graphql @@ -355,6 +355,11 @@ enum ActorType { Autogenerated input type of AddAssigneesToAssignable """ input AddAssigneesToAssignableInput { + """ + Configuration for assigning Copilot to this issue. + """ + agentAssignment: AgentAssignmentInput + """ The id of the assignable object to add assignees to. """ @@ -1418,6 +1423,31 @@ type AddedToProjectV2Event implements Node & ProjectV2Event { wasAutomated: Boolean! } +""" +Represents configuration for assigning Copilot to an issue (public variant) +""" +input AgentAssignmentInput { + """ + The base ref/branch for the repository. Defaults to the default branch if not provided. + """ + baseRef: String + + """ + Custom agent for Copilot. + """ + customAgent: String + + """ + Custom instructions for Copilot. + """ + customInstructions: String + + """ + The Node ID of the target repository where Copilot should work. Defaults to the issue's repository if not provided. + """ + targetRepositoryId: ID @possibleTypes(concreteTypes: ["Repository"]) +} + """ Copilot Agentic fields in context of the current viewer. """ @@ -8139,6 +8169,11 @@ type CreateIpAllowListEntryPayload { Autogenerated input type of CreateIssue """ input CreateIssueInput { + """ + Configuration for assigning Copilot to this issue. + """ + agentAssignment: AgentAssignmentInput + """ The Node ID of assignees for this issue. """ @@ -46681,6 +46716,11 @@ input ReplaceActorsForAssignableInput { """ actorLogins: [String!] + """ + Configuration for assigning an AI agent to this issue. + """ + agentAssignment: AgentAssignmentInput + """ The id of the assignable object to replace the assignees for. """ @@ -65414,6 +65454,11 @@ type UpdateIssueCommentPayload { Autogenerated input type of UpdateIssue """ input UpdateIssueInput { + """ + Configuration for assigning an AI agent to this issue. + """ + agentAssignment: AgentAssignmentInput + """ An array of Node IDs of users or bots for this issue. """ diff --git a/src/graphql/data/ghec/schema.json b/src/graphql/data/ghec/schema.json index 223d096c68bf..8f057ec3559a 100644 --- a/src/graphql/data/ghec/schema.json +++ b/src/graphql/data/ghec/schema.json @@ -97653,6 +97653,14 @@ "href": "/graphql/reference/input-objects#addassigneestoassignableinput", "description": "

Autogenerated input type of AddAssigneesToAssignable.

", "inputFields": [ + { + "name": "agentAssignment", + "description": "

Configuration for assigning Copilot to this issue.

", + "type": "AgentAssignmentInput", + "id": "agentassignmentinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#agentassignmentinput" + }, { "name": "assignableId", "description": "

The id of the assignable object to add assignees to.

", @@ -98549,6 +98557,48 @@ } ] }, + { + "name": "AgentAssignmentInput", + "kind": "inputObjects", + "id": "agentassignmentinput", + "href": "/graphql/reference/input-objects#agentassignmentinput", + "description": "

Represents configuration for assigning Copilot to an issue (public variant).

", + "inputFields": [ + { + "name": "baseRef", + "description": "

The base ref/branch for the repository. Defaults to the default branch if not provided.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "customAgent", + "description": "

Custom agent for Copilot.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "customInstructions", + "description": "

Custom instructions for Copilot.

", + "type": "String", + "id": "string", + "kind": "scalars", + "href": "/graphql/reference/scalars#string" + }, + { + "name": "targetRepositoryId", + "description": "

The Node ID of the target repository where Copilot should work. Defaults to the issue's repository if not provided.

", + "type": "ID", + "id": "id", + "kind": "scalars", + "href": "/graphql/reference/scalars#id", + "isDeprecated": false + } + ] + }, { "name": "ApproveDeploymentsInput", "kind": "inputObjects", @@ -100884,6 +100934,14 @@ "href": "/graphql/reference/input-objects#createissueinput", "description": "

Autogenerated input type of CreateIssue.

", "inputFields": [ + { + "name": "agentAssignment", + "description": "

Configuration for assigning Copilot to this issue.

", + "type": "AgentAssignmentInput", + "id": "agentassignmentinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#agentassignmentinput" + }, { "name": "assigneeIds", "description": "

The Node ID of assignees for this issue.

", @@ -106572,6 +106630,14 @@ "kind": "scalars", "href": "/graphql/reference/scalars#string" }, + { + "name": "agentAssignment", + "description": "

Configuration for assigning an AI agent to this issue.

", + "type": "AgentAssignmentInput", + "id": "agentassignmentinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#agentassignmentinput" + }, { "name": "assignableId", "description": "

The id of the assignable object to replace the assignees for.

", @@ -110360,6 +110426,14 @@ "href": "/graphql/reference/input-objects#updateissueinput", "description": "

Autogenerated input type of UpdateIssue.

", "inputFields": [ + { + "name": "agentAssignment", + "description": "

Configuration for assigning an AI agent to this issue.

", + "type": "AgentAssignmentInput", + "id": "agentassignmentinput", + "kind": "input-objects", + "href": "/graphql/reference/input-objects#agentassignmentinput" + }, { "name": "assigneeIds", "description": "

An array of Node IDs of users or bots for this issue.

",