From bec429a395d975e36eca5f232e45048a39343ebd Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Mon, 16 Feb 2026 13:22:04 -0500 Subject: [PATCH 1/3] refactor(api): graphql codegen Signed-off-by: Adam Setch --- codegen.ts | 18 +- graphql.config.ts | 1 + package.json | 3 +- pnpm-lock.yaml | 3 + .../utils/api/graphql/generated/graphql.ts | 31038 +--------------- 5 files changed, 1614 insertions(+), 29449 deletions(-) diff --git a/codegen.ts b/codegen.ts index 61874aa4d..4b41e4df4 100644 --- a/codegen.ts +++ b/codegen.ts @@ -15,21 +15,15 @@ const config: CodegenConfig = { }, documents: ['src/renderer/utils/api/**/*.graphql'], generates: { - 'src/renderer/utils/api/graphql/generated/': { - preset: 'client', - presetConfig: { - fragmentMasking: false, // Disables masking - }, + 'src/renderer/utils/api/graphql/generated/graphql.ts': { + plugins: ['typescript', 'typescript-operations', 'typed-document-node'], config: { + onlyOperationTypes: true, documentMode: 'string', - enumsAsTypes: true, useTypeImports: true, - }, - }, - 'src/renderer/utils/api/graphql/generated/schema.graphql': { - plugins: ['schema-ast'], - config: { - includeDirectives: true, + enumsAsTypes: true, + skipTypename: true, + fragmentMasking: false, // Disables masking }, }, }, diff --git a/graphql.config.ts b/graphql.config.ts index a4c02835b..58c8a0585 100644 --- a/graphql.config.ts +++ b/graphql.config.ts @@ -2,6 +2,7 @@ import type { IGraphQLConfig } from 'graphql-config'; const config: IGraphQLConfig = { schema: './src/renderer/utils/api/graphql/generated/schema.graphql', + documents: ['src/renderer/utils/api/**/*.graphql'], }; export default config; diff --git a/package.json b/package.json index f3f52c56e..f066e454c 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,7 @@ "@electron/notarize": "3.1.1", "@graphql-codegen/cli": "6.1.1", "@graphql-codegen/schema-ast": "5.0.0", + "@graphql-typed-document-node/core": "3.2.0", "@octokit/core": "7.0.6", "@octokit/graphql": "9.0.3", "@octokit/oauth-methods": "6.0.2", @@ -157,4 +158,4 @@ "*": "biome check --no-errors-on-unmatched", "*.{js,ts,tsx}": "pnpm test --changed --passWithNoTests --update" } -} +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 480226368..6f99681e4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -48,6 +48,9 @@ importers: '@graphql-codegen/schema-ast': specifier: 5.0.0 version: 5.0.0(graphql@16.12.0) + '@graphql-typed-document-node/core': + specifier: 3.2.0 + version: 3.2.0(graphql@16.12.0) '@octokit/core': specifier: 7.0.6 version: 7.0.6 diff --git a/src/renderer/utils/api/graphql/generated/graphql.ts b/src/renderer/utils/api/graphql/generated/graphql.ts index e628c6e8a..dd0503609 100644 --- a/src/renderer/utils/api/graphql/generated/graphql.ts +++ b/src/renderer/utils/api/graphql/generated/graphql.ts @@ -1,7 +1,6 @@ -/* eslint-disable */ import type { DocumentTypeDecoration } from '@graphql-typed-document-node/core'; export type Maybe = T | null; -export type InputMaybe = T | null | undefined; +export type InputMaybe = Maybe; export type Exact = { [K in keyof T]: T[K] }; export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; @@ -14,31 +13,18 @@ export type Scalars = { Boolean: { input: boolean; output: boolean; } Int: { input: number; output: number; } Float: { input: number; output: number; } - /** A (potentially binary) string encoded using base64. */ Base64String: { input: any; output: any; } - /** Represents non-fractional signed whole numeric values. Since the value may exceed the size of a 32-bit integer, it's encoded as a string. */ BigInt: { input: any; output: any; } - /** A custom property value can be either a string or an array of strings. All property types support only a single string value, except for the multi-select type, which supports only a string array. */ CustomPropertyValue: { input: any; output: any; } - /** An ISO-8601 encoded date string. */ Date: { input: any; output: any; } - /** An ISO-8601 encoded UTC date string. */ DateTime: { input: any; output: any; } - /** A Git object ID. */ GitObjectID: { input: any; output: any; } - /** A fully qualified reference name (e.g. `refs/heads/master`). */ GitRefname: { input: any; output: any; } - /** Git SSH string */ GitSSHRemote: { input: any; output: any; } - /** An ISO-8601 encoded date string. Unlike the DateTime type, GitTimestamp is not converted in UTC. */ GitTimestamp: { input: any; output: any; } - /** A string containing HTML code. */ HTML: { input: any; output: any; } - /** An ISO-8601 encoded UTC date string with millisecond precision. */ PreciseDateTime: { input: any; output: any; } - /** An RFC 3986, RFC 3987, and RFC 6570 (level 4) compliant URI string. */ URI: { input: any; output: any; } - /** A valid x509 certificate string */ X509Certificate: { input: any; output: any; } _Any: { input: any; output: any; } }; @@ -51,15 +37,6 @@ export type AbortQueuedMigrationsInput = { ownerId: Scalars['ID']['input']; }; -/** Autogenerated return type of AbortQueuedMigrations. */ -export type AbortQueuedMigrationsPayload = { - __typename?: 'AbortQueuedMigrationsPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** Did the operation succeed? */ - success?: Maybe; -}; - /** Autogenerated input type of AbortRepositoryMigration */ export type AbortRepositoryMigrationInput = { /** A unique identifier for the client performing the mutation. */ @@ -68,15 +45,6 @@ export type AbortRepositoryMigrationInput = { migrationId: Scalars['ID']['input']; }; -/** Autogenerated return type of AbortRepositoryMigration. */ -export type AbortRepositoryMigrationPayload = { - __typename?: 'AbortRepositoryMigrationPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** Did the operation succeed? */ - success?: Maybe; -}; - /** Autogenerated input type of AcceptEnterpriseAdministratorInvitation */ export type AcceptEnterpriseAdministratorInvitationInput = { /** A unique identifier for the client performing the mutation. */ @@ -85,17 +53,6 @@ export type AcceptEnterpriseAdministratorInvitationInput = { invitationId: Scalars['ID']['input']; }; -/** Autogenerated return type of AcceptEnterpriseAdministratorInvitation. */ -export type AcceptEnterpriseAdministratorInvitationPayload = { - __typename?: 'AcceptEnterpriseAdministratorInvitationPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The invitation that was accepted. */ - invitation?: Maybe; - /** A message confirming the result of accepting an administrator invitation. */ - message?: Maybe; -}; - /** Autogenerated input type of AcceptEnterpriseMemberInvitation */ export type AcceptEnterpriseMemberInvitationInput = { /** A unique identifier for the client performing the mutation. */ @@ -104,17 +61,6 @@ export type AcceptEnterpriseMemberInvitationInput = { invitationId: Scalars['ID']['input']; }; -/** Autogenerated return type of AcceptEnterpriseMemberInvitation. */ -export type AcceptEnterpriseMemberInvitationPayload = { - __typename?: 'AcceptEnterpriseMemberInvitationPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The invitation that was accepted. */ - invitation?: Maybe; - /** A message confirming the result of accepting an unaffiliated member invitation. */ - message?: Maybe; -}; - /** Autogenerated input type of AcceptTopicSuggestion */ export type AcceptTopicSuggestionInput = { /** A unique identifier for the client performing the mutation. */ @@ -139,18 +85,6 @@ export type AcceptTopicSuggestionInput = { repositoryId?: InputMaybe; }; -/** Autogenerated return type of AcceptTopicSuggestion. */ -export type AcceptTopicSuggestionPayload = { - __typename?: 'AcceptTopicSuggestionPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** - * The accepted topic. - * @deprecated Suggested topics are no longer supported Removal on 2024-04-01 UTC. - */ - topic?: Maybe; -}; - /** Autogenerated input type of AccessUserNamespaceRepository */ export type AccessUserNamespaceRepositoryInput = { /** A unique identifier for the client performing the mutation. */ @@ -161,72 +95,6 @@ export type AccessUserNamespaceRepositoryInput = { repositoryId: Scalars['ID']['input']; }; -/** Autogenerated return type of AccessUserNamespaceRepository. */ -export type AccessUserNamespaceRepositoryPayload = { - __typename?: 'AccessUserNamespaceRepositoryPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The time that repository access expires at */ - expiresAt?: Maybe; - /** The repository that is temporarily accessible. */ - repository?: Maybe; -}; - -/** Represents an object which can take actions on GitHub. Typically a User or Bot. */ -export type Actor = { - /** A URL pointing to the actor's public avatar. */ - avatarUrl: Scalars['URI']['output']; - /** The username of the actor. */ - login: Scalars['String']['output']; - /** The HTTP path for this actor. */ - resourcePath: Scalars['URI']['output']; - /** The HTTP URL for this actor. */ - url: Scalars['URI']['output']; -}; - - -/** Represents an object which can take actions on GitHub. Typically a User or Bot. */ -export type ActorAvatarUrlArgs = { - size?: InputMaybe; -}; - -/** The connection type for Actor. */ -export type ActorConnection = { - __typename?: 'ActorConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type ActorEdge = { - __typename?: 'ActorEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** Location information for an actor */ -export type ActorLocation = { - __typename?: 'ActorLocation'; - /** City */ - city?: Maybe; - /** Country name */ - country?: Maybe; - /** Country code */ - countryCode?: Maybe; - /** Region name */ - region?: Maybe; - /** Region or state code */ - regionCode?: Maybe; -}; - /** The actor's type. */ export type ActorType = /** Indicates a team actor. */ @@ -236,6 +104,8 @@ export type ActorType = /** Autogenerated input type of AddAssigneesToAssignable */ export type AddAssigneesToAssignableInput = { + /** Configuration for assigning Copilot to this issue. */ + agentAssignment?: InputMaybe; /** The id of the assignable object to add assignees to. */ assignableId: Scalars['ID']['input']; /** The ids of actors (users or bots) to add as assignees. */ @@ -244,15 +114,6 @@ export type AddAssigneesToAssignableInput = { clientMutationId?: InputMaybe; }; -/** Autogenerated return type of AddAssigneesToAssignable. */ -export type AddAssigneesToAssignablePayload = { - __typename?: 'AddAssigneesToAssignablePayload'; - /** The item that was assigned. */ - assignable?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; - /** Autogenerated input type of AddBlockedBy */ export type AddBlockedByInput = { /** The ID of the issue that blocks the given issue. */ @@ -263,17 +124,6 @@ export type AddBlockedByInput = { issueId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddBlockedBy. */ -export type AddBlockedByPayload = { - __typename?: 'AddBlockedByPayload'; - /** The issue that is blocking the given issue. */ - blockingIssue?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The issue that is blocked. */ - issue?: Maybe; -}; - /** Autogenerated input type of AddComment */ export type AddCommentInput = { /** The contents of the comment. */ @@ -284,19 +134,6 @@ export type AddCommentInput = { subjectId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddComment. */ -export type AddCommentPayload = { - __typename?: 'AddCommentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The edge from the subject's comment connection. */ - commentEdge?: Maybe; - /** The subject */ - subject?: Maybe; - /** The edge from the subject's timeline connection. */ - timelineEdge?: Maybe; -}; - /** Autogenerated input type of AddDiscussionComment */ export type AddDiscussionCommentInput = { /** The contents of the comment. */ @@ -309,15 +146,6 @@ export type AddDiscussionCommentInput = { replyToId?: InputMaybe; }; -/** Autogenerated return type of AddDiscussionComment. */ -export type AddDiscussionCommentPayload = { - __typename?: 'AddDiscussionCommentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The newly created discussion comment. */ - comment?: Maybe; -}; - /** Autogenerated input type of AddDiscussionPollVote */ export type AddDiscussionPollVoteInput = { /** A unique identifier for the client performing the mutation. */ @@ -326,15 +154,6 @@ export type AddDiscussionPollVoteInput = { pollOptionId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddDiscussionPollVote. */ -export type AddDiscussionPollVotePayload = { - __typename?: 'AddDiscussionPollVotePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The poll option that a vote was added to. */ - pollOption?: Maybe; -}; - /** Autogenerated input type of AddEnterpriseOrganizationMember */ export type AddEnterpriseOrganizationMemberInput = { /** A unique identifier for the client performing the mutation. */ @@ -349,15 +168,6 @@ export type AddEnterpriseOrganizationMemberInput = { userIds: Array; }; -/** Autogenerated return type of AddEnterpriseOrganizationMember. */ -export type AddEnterpriseOrganizationMemberPayload = { - __typename?: 'AddEnterpriseOrganizationMemberPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The users who were added to the organization. */ - users?: Maybe>; -}; - /** Autogenerated input type of AddEnterpriseSupportEntitlement */ export type AddEnterpriseSupportEntitlementInput = { /** A unique identifier for the client performing the mutation. */ @@ -368,15 +178,6 @@ export type AddEnterpriseSupportEntitlementInput = { login: Scalars['String']['input']; }; -/** Autogenerated return type of AddEnterpriseSupportEntitlement. */ -export type AddEnterpriseSupportEntitlementPayload = { - __typename?: 'AddEnterpriseSupportEntitlementPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** A message confirming the result of adding the support entitlement. */ - message?: Maybe; -}; - /** Autogenerated input type of AddLabelsToLabelable */ export type AddLabelsToLabelableInput = { /** A unique identifier for the client performing the mutation. */ @@ -387,15 +188,6 @@ export type AddLabelsToLabelableInput = { labelableId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddLabelsToLabelable. */ -export type AddLabelsToLabelablePayload = { - __typename?: 'AddLabelsToLabelablePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The item that was labeled. */ - labelable?: Maybe; -}; - /** Autogenerated input type of AddProjectCard */ export type AddProjectCardInput = { /** A unique identifier for the client performing the mutation. */ @@ -408,17 +200,6 @@ export type AddProjectCardInput = { projectColumnId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddProjectCard. */ -export type AddProjectCardPayload = { - __typename?: 'AddProjectCardPayload'; - /** The edge from the ProjectColumn's card connection. */ - cardEdge?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The ProjectColumn */ - projectColumn?: Maybe; -}; - /** Autogenerated input type of AddProjectColumn */ export type AddProjectColumnInput = { /** A unique identifier for the client performing the mutation. */ @@ -429,17 +210,6 @@ export type AddProjectColumnInput = { projectId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddProjectColumn. */ -export type AddProjectColumnPayload = { - __typename?: 'AddProjectColumnPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The edge from the project's column connection. */ - columnEdge?: Maybe; - /** The project */ - project?: Maybe; -}; - /** Autogenerated input type of AddProjectV2DraftIssue */ export type AddProjectV2DraftIssueInput = { /** The IDs of the assignees of the draft issue. */ @@ -454,15 +224,6 @@ export type AddProjectV2DraftIssueInput = { title: Scalars['String']['input']; }; -/** Autogenerated return type of AddProjectV2DraftIssue. */ -export type AddProjectV2DraftIssuePayload = { - __typename?: 'AddProjectV2DraftIssuePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The draft issue added to the project. */ - projectItem?: Maybe; -}; - /** Autogenerated input type of AddProjectV2ItemById */ export type AddProjectV2ItemByIdInput = { /** A unique identifier for the client performing the mutation. */ @@ -473,15 +234,6 @@ export type AddProjectV2ItemByIdInput = { projectId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddProjectV2ItemById. */ -export type AddProjectV2ItemByIdPayload = { - __typename?: 'AddProjectV2ItemByIdPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The item added to the project. */ - item?: Maybe; -}; - /** Autogenerated input type of AddPullRequestReviewComment */ export type AddPullRequestReviewCommentInput = { /** @@ -551,17 +303,6 @@ export type AddPullRequestReviewCommentInput = { pullRequestReviewId?: InputMaybe; }; -/** Autogenerated return type of AddPullRequestReviewComment. */ -export type AddPullRequestReviewCommentPayload = { - __typename?: 'AddPullRequestReviewCommentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The newly created comment. */ - comment?: Maybe; - /** The edge from the review's comment connection. */ - commentEdge?: Maybe; -}; - /** Autogenerated input type of AddPullRequestReview */ export type AddPullRequestReviewInput = { /** The contents of the review body comment. */ @@ -587,17 +328,6 @@ export type AddPullRequestReviewInput = { threads?: InputMaybe>>; }; -/** Autogenerated return type of AddPullRequestReview. */ -export type AddPullRequestReviewPayload = { - __typename?: 'AddPullRequestReviewPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The newly created pull request review. */ - pullRequestReview?: Maybe; - /** The edge from the pull request's review connection. */ - reviewEdge?: Maybe; -}; - /** Autogenerated input type of AddPullRequestReviewThread */ export type AddPullRequestReviewThreadInput = { /** Body of the thread's first comment. */ @@ -622,15 +352,6 @@ export type AddPullRequestReviewThreadInput = { subjectType?: InputMaybe; }; -/** Autogenerated return type of AddPullRequestReviewThread. */ -export type AddPullRequestReviewThreadPayload = { - __typename?: 'AddPullRequestReviewThreadPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The newly created thread. */ - thread?: Maybe; -}; - /** Autogenerated input type of AddPullRequestReviewThreadReply */ export type AddPullRequestReviewThreadReplyInput = { /** The text of the reply. */ @@ -643,15 +364,6 @@ export type AddPullRequestReviewThreadReplyInput = { pullRequestReviewThreadId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddPullRequestReviewThreadReply. */ -export type AddPullRequestReviewThreadReplyPayload = { - __typename?: 'AddPullRequestReviewThreadReplyPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The newly created reply. */ - comment?: Maybe; -}; - /** Autogenerated input type of AddReaction */ export type AddReactionInput = { /** A unique identifier for the client performing the mutation. */ @@ -662,19 +374,6 @@ export type AddReactionInput = { subjectId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddReaction. */ -export type AddReactionPayload = { - __typename?: 'AddReactionPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The reaction object. */ - reaction?: Maybe; - /** The reaction groups for the subject. */ - reactionGroups?: Maybe>; - /** The reactable subject. */ - subject?: Maybe; -}; - /** Autogenerated input type of AddStar */ export type AddStarInput = { /** A unique identifier for the client performing the mutation. */ @@ -683,15 +382,6 @@ export type AddStarInput = { starrableId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddStar. */ -export type AddStarPayload = { - __typename?: 'AddStarPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The starrable. */ - starrable?: Maybe; -}; - /** Autogenerated input type of AddSubIssue */ export type AddSubIssueInput = { /** A unique identifier for the client performing the mutation. */ @@ -706,17 +396,6 @@ export type AddSubIssueInput = { subIssueUrl?: InputMaybe; }; -/** Autogenerated return type of AddSubIssue. */ -export type AddSubIssuePayload = { - __typename?: 'AddSubIssuePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The parent issue that the sub-issue was added to. */ - issue?: Maybe; - /** The sub-issue of the parent. */ - subIssue?: Maybe; -}; - /** Autogenerated input type of AddUpvote */ export type AddUpvoteInput = { /** A unique identifier for the client performing the mutation. */ @@ -725,15 +404,6 @@ export type AddUpvoteInput = { subjectId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddUpvote. */ -export type AddUpvotePayload = { - __typename?: 'AddUpvotePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The votable subject. */ - subject?: Maybe; -}; - /** Autogenerated input type of AddVerifiableDomain */ export type AddVerifiableDomainInput = { /** A unique identifier for the client performing the mutation. */ @@ -744,144 +414,16 @@ export type AddVerifiableDomainInput = { ownerId: Scalars['ID']['input']; }; -/** Autogenerated return type of AddVerifiableDomain. */ -export type AddVerifiableDomainPayload = { - __typename?: 'AddVerifiableDomainPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The verifiable domain that was added. */ - domain?: Maybe; -}; - -/** Represents an 'added_to_merge_queue' event on a given pull request. */ -export type AddedToMergeQueueEvent = Node & { - __typename?: 'AddedToMergeQueueEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The user who added this Pull Request to the merge queue */ - enqueuer?: Maybe; - /** The Node ID of the AddedToMergeQueueEvent object */ - id: Scalars['ID']['output']; - /** The merge queue where this pull request was added to. */ - mergeQueue?: Maybe; - /** PullRequest referenced by event. */ - pullRequest?: Maybe; -}; - -/** Represents a 'added_to_project' event on a given issue or pull request. */ -export type AddedToProjectEvent = Node & { - __typename?: 'AddedToProjectEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** - * Identifies the primary key from the database. - * @deprecated Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC. - */ - databaseId?: Maybe; - /** The Node ID of the AddedToProjectEvent object */ - id: Scalars['ID']['output']; - /** - * Project referenced by event. - * @deprecated Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC. - */ - project?: Maybe; - /** - * Project card referenced by this project event. - * @deprecated Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC. - */ - projectCard?: Maybe; - /** - * Column name referenced by this project event. - * @deprecated Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC. - */ - projectColumnName: Scalars['String']['output']; -}; - -/** Represents a 'added_to_project_v2' event on a given issue or pull request. */ -export type AddedToProjectV2Event = Node & ProjectV2Event & { - __typename?: 'AddedToProjectV2Event'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the AddedToProjectV2Event object */ - id: Scalars['ID']['output']; - /** Project referenced by event. */ - project?: Maybe; - /** Did this event result from workflow automation? */ - wasAutomated: Scalars['Boolean']['output']; -}; - -/** Copilot Agentic fields in context of the current viewer. */ -export type Agentic = { - /** Channel value for subscribing to live updates for session creations. */ - viewerCopilotAgentCreatesChannel?: Maybe; - /** Channel value for subscribing to live updates for session log updates. */ - viewerCopilotAgentLogUpdatesChannel?: Maybe; - /** Channel value for subscribing to live updates for session updates. */ - viewerCopilotAgentUpdatesChannel?: Maybe; -}; - -/** An announcement banner for an enterprise or organization. */ -export type AnnouncementBanner = { - __typename?: 'AnnouncementBanner'; - /** The date the announcement was created */ - createdAt: Scalars['DateTime']['output']; - /** The expiration date of the announcement, if any */ - expiresAt?: Maybe; - /** Whether the announcement can be dismissed by the user */ - isUserDismissible: Scalars['Boolean']['output']; - /** The text of the announcement */ - message?: Maybe; -}; - -/** A GitHub App. */ -export type App = Node & { - __typename?: 'App'; - /** The client ID of the app. */ - clientId?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The description of the app. */ - description?: Maybe; - /** The Node ID of the App object */ - id: Scalars['ID']['output']; - /** The IP addresses of the app. */ - ipAllowListEntries: IpAllowListEntryConnection; - /** The hex color code, without the leading '#', for the logo background. */ - logoBackgroundColor: Scalars['String']['output']; - /** A URL pointing to the app's logo. */ - logoUrl: Scalars['URI']['output']; - /** The name of the app. */ - name: Scalars['String']['output']; - /** A slug based on the name of the app for use in URLs. */ - slug: Scalars['String']['output']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']['output']; - /** The URL to the app's homepage. */ - url: Scalars['URI']['output']; -}; - - -/** A GitHub App. */ -export type AppIpAllowListEntriesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - orderBy?: InputMaybe; -}; - - -/** A GitHub App. */ -export type AppLogoUrlArgs = { - size?: InputMaybe; +/** Represents configuration for assigning Copilot to an issue (public variant) */ +export type AgentAssignmentInput = { + /** The base ref/branch for the repository. Defaults to the default branch if not provided. */ + baseRef?: InputMaybe; + /** Custom agent for Copilot. */ + customAgent?: InputMaybe; + /** Custom instructions for Copilot. */ + customInstructions?: InputMaybe; + /** The Node ID of the target repository where Copilot should work. Defaults to the issue's repository if not provided. */ + targetRepositoryId?: InputMaybe; }; /** Autogenerated input type of ApproveDeployments */ @@ -896,15 +438,6 @@ export type ApproveDeploymentsInput = { workflowRunId: Scalars['ID']['input']; }; -/** Autogenerated return type of ApproveDeployments. */ -export type ApproveDeploymentsPayload = { - __typename?: 'ApproveDeploymentsPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The affected deployments. */ - deployments?: Maybe>; -}; - /** Autogenerated input type of ApproveVerifiableDomain */ export type ApproveVerifiableDomainInput = { /** A unique identifier for the client performing the mutation. */ @@ -913,15 +446,6 @@ export type ApproveVerifiableDomainInput = { id: Scalars['ID']['input']; }; -/** Autogenerated return type of ApproveVerifiableDomain. */ -export type ApproveVerifiableDomainPayload = { - __typename?: 'ApproveVerifiableDomainPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The verifiable domain that was approved. */ - domain?: Maybe; -}; - /** Autogenerated input type of ArchiveProjectV2Item */ export type ArchiveProjectV2ItemInput = { /** A unique identifier for the client performing the mutation. */ @@ -932,15 +456,6 @@ export type ArchiveProjectV2ItemInput = { projectId: Scalars['ID']['input']; }; -/** Autogenerated return type of ArchiveProjectV2Item. */ -export type ArchiveProjectV2ItemPayload = { - __typename?: 'ArchiveProjectV2ItemPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The item archived from the project. */ - item?: Maybe; -}; - /** Autogenerated input type of ArchiveRepository */ export type ArchiveRepositoryInput = { /** A unique identifier for the client performing the mutation. */ @@ -949,170 +464,6 @@ export type ArchiveRepositoryInput = { repositoryId: Scalars['ID']['input']; }; -/** Autogenerated return type of ArchiveRepository. */ -export type ArchiveRepositoryPayload = { - __typename?: 'ArchiveRepositoryPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The repository that was marked as archived. */ - repository?: Maybe; -}; - -/** An object that can have users assigned to it. */ -export type Assignable = { - /** A list of actors assigned to this object. */ - assignedActors: AssigneeConnection; - /** A list of Users assigned to this object. */ - assignees: UserConnection; - /** A list of suggested actors to assign to this object */ - suggestedActors: AssigneeConnection; -}; - - -/** An object that can have users assigned to it. */ -export type AssignableAssignedActorsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** An object that can have users assigned to it. */ -export type AssignableAssigneesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** An object that can have users assigned to it. */ -export type AssignableSuggestedActorsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - query?: InputMaybe; -}; - -/** Represents an 'assigned' event on any assignable object. */ -export type AssignedEvent = Node & { - __typename?: 'AssignedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the assignable associated with the event. */ - assignable: Assignable; - /** Identifies the user or mannequin that was assigned. */ - assignee?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the AssignedEvent object */ - id: Scalars['ID']['output']; - /** - * Identifies the user who was assigned. - * @deprecated Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC. - */ - user?: Maybe; -}; - -/** Types that can be assigned to issues. */ -export type Assignee = Bot | Mannequin | Organization | User; - -/** The connection type for Assignee. */ -export type AssigneeConnection = { - __typename?: 'AssigneeConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type AssigneeEdge = { - __typename?: 'AssigneeEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** An entry in the audit log. */ -export type AuditEntry = { - /** - * The action name - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - action: Scalars['String']['output']; - /** - * The user who initiated the action - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - actor?: Maybe; - /** - * The IP address of the actor - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - actorIp?: Maybe; - /** - * A readable representation of the actor's location - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - actorLocation?: Maybe; - /** - * The username of the user who initiated the action - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - actorLogin?: Maybe; - /** - * The HTTP path for the actor. - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - actorResourcePath?: Maybe; - /** - * The HTTP URL for the actor. - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - actorUrl?: Maybe; - /** - * The time the action was initiated - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - createdAt: Scalars['PreciseDateTime']['output']; - /** - * The corresponding operation type for the action - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - operationType?: Maybe; - /** - * The user affected by the action - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - user?: Maybe; - /** - * For actions involving two users, the actor is the initiator and the user is the affected user. - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - userLogin?: Maybe; - /** - * The HTTP path for the user. - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - userResourcePath?: Maybe; - /** - * The HTTP URL for the user. - * @deprecated The GraphQL audit-log is deprecated. Please use the REST API instead. Removal on 2026-04-01 UTC. - */ - userUrl?: Maybe; -}; - -/** Types that can initiate an audit log event. */ -export type AuditEntryActor = Bot | Organization | User; - /** Ordering options for Audit Log connections. */ export type AuditLogOrder = { /** The ordering direction. */ @@ -1126,316 +477,6 @@ export type AuditLogOrderField = /** Order audit log entries by timestamp */ | 'CREATED_AT'; -/** Represents a 'auto_merge_disabled' event on a given pull request. */ -export type AutoMergeDisabledEvent = Node & { - __typename?: 'AutoMergeDisabledEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The user who disabled auto-merge for this Pull Request */ - disabler?: Maybe; - /** The Node ID of the AutoMergeDisabledEvent object */ - id: Scalars['ID']['output']; - /** PullRequest referenced by event */ - pullRequest?: Maybe; - /** The reason auto-merge was disabled */ - reason?: Maybe; - /** The reason_code relating to why auto-merge was disabled */ - reasonCode?: Maybe; -}; - -/** Represents a 'auto_merge_enabled' event on a given pull request. */ -export type AutoMergeEnabledEvent = Node & { - __typename?: 'AutoMergeEnabledEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The user who enabled auto-merge for this Pull Request */ - enabler?: Maybe; - /** The Node ID of the AutoMergeEnabledEvent object */ - id: Scalars['ID']['output']; - /** PullRequest referenced by event. */ - pullRequest?: Maybe; -}; - -/** Represents an auto-merge request for a pull request */ -export type AutoMergeRequest = { - __typename?: 'AutoMergeRequest'; - /** The email address of the author of this auto-merge request. */ - authorEmail?: Maybe; - /** The commit message of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging. */ - commitBody?: Maybe; - /** The commit title of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging */ - commitHeadline?: Maybe; - /** When was this auto-merge request was enabled. */ - enabledAt?: Maybe; - /** The actor who created the auto-merge request. */ - enabledBy?: Maybe; - /** The merge method of the auto-merge request. If a merge queue is required by the base branch, this value will be set by the merge queue when merging. */ - mergeMethod: PullRequestMergeMethod; - /** The pull request that this auto-merge request is set against. */ - pullRequest: PullRequest; -}; - -/** Represents a 'auto_rebase_enabled' event on a given pull request. */ -export type AutoRebaseEnabledEvent = Node & { - __typename?: 'AutoRebaseEnabledEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The user who enabled auto-merge (rebase) for this Pull Request */ - enabler?: Maybe; - /** The Node ID of the AutoRebaseEnabledEvent object */ - id: Scalars['ID']['output']; - /** PullRequest referenced by event. */ - pullRequest?: Maybe; -}; - -/** Represents a 'auto_squash_enabled' event on a given pull request. */ -export type AutoSquashEnabledEvent = Node & { - __typename?: 'AutoSquashEnabledEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The user who enabled auto-merge (squash) for this Pull Request */ - enabler?: Maybe; - /** The Node ID of the AutoSquashEnabledEvent object */ - id: Scalars['ID']['output']; - /** PullRequest referenced by event. */ - pullRequest?: Maybe; -}; - -/** Represents a 'automatic_base_change_failed' event on a given pull request. */ -export type AutomaticBaseChangeFailedEvent = Node & { - __typename?: 'AutomaticBaseChangeFailedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the AutomaticBaseChangeFailedEvent object */ - id: Scalars['ID']['output']; - /** The new base for this PR */ - newBase: Scalars['String']['output']; - /** The old base for this PR */ - oldBase: Scalars['String']['output']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; -}; - -/** Represents a 'automatic_base_change_succeeded' event on a given pull request. */ -export type AutomaticBaseChangeSucceededEvent = Node & { - __typename?: 'AutomaticBaseChangeSucceededEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the AutomaticBaseChangeSucceededEvent object */ - id: Scalars['ID']['output']; - /** The new base for this PR */ - newBase: Scalars['String']['output']; - /** The old base for this PR */ - oldBase: Scalars['String']['output']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; -}; - -/** Represents a 'base_ref_changed' event on a given issue or pull request. */ -export type BaseRefChangedEvent = Node & { - __typename?: 'BaseRefChangedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** Identifies the name of the base ref for the pull request after it was changed. */ - currentRefName: Scalars['String']['output']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The Node ID of the BaseRefChangedEvent object */ - id: Scalars['ID']['output']; - /** Identifies the name of the base ref for the pull request before it was changed. */ - previousRefName: Scalars['String']['output']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; -}; - -/** Represents a 'base_ref_deleted' event on a given pull request. */ -export type BaseRefDeletedEvent = Node & { - __typename?: 'BaseRefDeletedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the name of the Ref associated with the `base_ref_deleted` event. */ - baseRefName?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the BaseRefDeletedEvent object */ - id: Scalars['ID']['output']; - /** PullRequest referenced by event. */ - pullRequest?: Maybe; -}; - -/** Represents a 'base_ref_force_pushed' event on a given pull request. */ -export type BaseRefForcePushedEvent = Node & { - __typename?: 'BaseRefForcePushedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the after commit SHA for the 'base_ref_force_pushed' event. */ - afterCommit?: Maybe; - /** Identifies the before commit SHA for the 'base_ref_force_pushed' event. */ - beforeCommit?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the BaseRefForcePushedEvent object */ - id: Scalars['ID']['output']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; - /** Identifies the fully qualified ref name for the 'base_ref_force_pushed' event. */ - ref?: Maybe; -}; - -/** Represents a Git blame. */ -export type Blame = { - __typename?: 'Blame'; - /** The list of ranges from a Git blame. */ - ranges: Array; -}; - -/** Represents a range of information from a Git blame. */ -export type BlameRange = { - __typename?: 'BlameRange'; - /** Identifies the recency of the change, from 1 (new) to 10 (old). This is calculated as a 2-quantile and determines the length of distance between the median age of all the changes in the file and the recency of the current range's change. */ - age: Scalars['Int']['output']; - /** Identifies the line author */ - commit: Commit; - /** The ending line for the range */ - endingLine: Scalars['Int']['output']; - /** The starting line for the range */ - startingLine: Scalars['Int']['output']; -}; - -/** Represents a Git blob. */ -export type Blob = GitObject & Node & { - __typename?: 'Blob'; - /** An abbreviated version of the Git object ID */ - abbreviatedOid: Scalars['String']['output']; - /** Byte size of Blob object */ - byteSize: Scalars['Int']['output']; - /** The HTTP path for this Git object */ - commitResourcePath: Scalars['URI']['output']; - /** The HTTP URL for this Git object */ - commitUrl: Scalars['URI']['output']; - /** The Node ID of the Blob object */ - id: Scalars['ID']['output']; - /** Indicates whether the Blob is binary or text. Returns null if unable to determine the encoding. */ - isBinary?: Maybe; - /** Indicates whether the contents is truncated */ - isTruncated: Scalars['Boolean']['output']; - /** The Git object ID */ - oid: Scalars['GitObjectID']['output']; - /** The Repository the Git object belongs to */ - repository: Repository; - /** UTF8 text data or null if the Blob is binary */ - text?: Maybe; -}; - -/** Represents a 'blocked_by_added' event on a given issue. */ -export type BlockedByAddedEvent = Node & { - __typename?: 'BlockedByAddedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** The blocking issue that was added. */ - blockingIssue?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the BlockedByAddedEvent object */ - id: Scalars['ID']['output']; -}; - -/** Represents a 'blocked_by_removed' event on a given issue. */ -export type BlockedByRemovedEvent = Node & { - __typename?: 'BlockedByRemovedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** The blocking issue that was removed. */ - blockingIssue?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the BlockedByRemovedEvent object */ - id: Scalars['ID']['output']; -}; - -/** Represents a 'blocking_added' event on a given issue. */ -export type BlockingAddedEvent = Node & { - __typename?: 'BlockingAddedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** The blocked issue that was added. */ - blockedIssue?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the BlockingAddedEvent object */ - id: Scalars['ID']['output']; -}; - -/** Represents a 'blocking_removed' event on a given issue. */ -export type BlockingRemovedEvent = Node & { - __typename?: 'BlockingRemovedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** The blocked issue that was removed. */ - blockedIssue?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the BlockingRemovedEvent object */ - id: Scalars['ID']['output']; -}; - -/** A special type of user which takes actions on behalf of GitHub Apps. */ -export type Bot = Actor & Node & UniformResourceLocatable & { - __typename?: 'Bot'; - /** A URL pointing to the GitHub App's public avatar. */ - avatarUrl: Scalars['URI']['output']; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The Node ID of the Bot object */ - id: Scalars['ID']['output']; - /** The username of the actor. */ - login: Scalars['String']['output']; - /** The HTTP path for this bot */ - resourcePath: Scalars['URI']['output']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']['output']; - /** The HTTP URL for this bot */ - url: Scalars['URI']['output']; -}; - - -/** A special type of user which takes actions on behalf of GitHub Apps. */ -export type BotAvatarUrlArgs = { - size?: InputMaybe; -}; - -/** Types which can be actors for `BranchActorAllowance` objects. */ -export type BranchActorAllowanceActor = App | Team | User; - -/** Parameters to be used for the branch_name_pattern rule */ -export type BranchNamePatternParameters = { - __typename?: 'BranchNamePatternParameters'; - /** How this rule appears when configuring it. */ - name?: Maybe; - /** If true, the rule will fail if the pattern matches. */ - negate: Scalars['Boolean']['output']; - /** The operator to use for matching. */ - operator: Scalars['String']['output']; - /** The pattern to match with. */ - pattern: Scalars['String']['output']; -}; - /** Parameters to be used for the branch_name_pattern rule */ export type BranchNamePatternParametersInput = { /** How this rule appears when configuring it. */ @@ -1448,187 +489,6 @@ export type BranchNamePatternParametersInput = { pattern: Scalars['String']['input']; }; -/** A branch protection rule. */ -export type BranchProtectionRule = Node & { - __typename?: 'BranchProtectionRule'; - /** Can this branch be deleted. */ - allowsDeletions: Scalars['Boolean']['output']; - /** Are force pushes allowed on this branch. */ - allowsForcePushes: Scalars['Boolean']['output']; - /** Is branch creation a protected operation. */ - blocksCreations: Scalars['Boolean']['output']; - /** A list of conflicts matching branches protection rule and other branch protection rules */ - branchProtectionRuleConflicts: BranchProtectionRuleConflictConnection; - /** A list of actors able to force push for this branch protection rule. */ - bypassForcePushAllowances: BypassForcePushAllowanceConnection; - /** A list of actors able to bypass PRs for this branch protection rule. */ - bypassPullRequestAllowances: BypassPullRequestAllowanceConnection; - /** The actor who created this branch protection rule. */ - creator?: Maybe; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** Will new commits pushed to matching branches dismiss pull request review approvals. */ - dismissesStaleReviews: Scalars['Boolean']['output']; - /** The Node ID of the BranchProtectionRule object */ - id: Scalars['ID']['output']; - /** Can admins override branch protection. */ - isAdminEnforced: Scalars['Boolean']['output']; - /** Whether users can pull changes from upstream when the branch is locked. Set to `true` to allow fork syncing. Set to `false` to prevent fork syncing. */ - lockAllowsFetchAndMerge: Scalars['Boolean']['output']; - /** Whether to set the branch as read-only. If this is true, users will not be able to push to the branch. */ - lockBranch: Scalars['Boolean']['output']; - /** Repository refs that are protected by this rule */ - matchingRefs: RefConnection; - /** Identifies the protection rule pattern. */ - pattern: Scalars['String']['output']; - /** A list push allowances for this branch protection rule. */ - pushAllowances: PushAllowanceConnection; - /** The repository associated with this branch protection rule. */ - repository?: Maybe; - /** Whether the most recent push must be approved by someone other than the person who pushed it */ - requireLastPushApproval: Scalars['Boolean']['output']; - /** Number of approving reviews required to update matching branches. */ - requiredApprovingReviewCount?: Maybe; - /** List of required deployment environments that must be deployed successfully to update matching branches */ - requiredDeploymentEnvironments?: Maybe>>; - /** List of required status check contexts that must pass for commits to be accepted to matching branches. */ - requiredStatusCheckContexts?: Maybe>>; - /** List of required status checks that must pass for commits to be accepted to matching branches. */ - requiredStatusChecks?: Maybe>; - /** Are approving reviews required to update matching branches. */ - requiresApprovingReviews: Scalars['Boolean']['output']; - /** Are reviews from code owners required to update matching branches. */ - requiresCodeOwnerReviews: Scalars['Boolean']['output']; - /** Are commits required to be signed. */ - requiresCommitSignatures: Scalars['Boolean']['output']; - /** Are conversations required to be resolved before merging. */ - requiresConversationResolution: Scalars['Boolean']['output']; - /** Does this branch require deployment to specific environments before merging */ - requiresDeployments: Scalars['Boolean']['output']; - /** Are merge commits prohibited from being pushed to this branch. */ - requiresLinearHistory: Scalars['Boolean']['output']; - /** Are status checks required to update matching branches. */ - requiresStatusChecks: Scalars['Boolean']['output']; - /** Are branches required to be up to date before merging. */ - requiresStrictStatusChecks: Scalars['Boolean']['output']; - /** Is pushing to matching branches restricted. */ - restrictsPushes: Scalars['Boolean']['output']; - /** Is dismissal of pull request reviews restricted. */ - restrictsReviewDismissals: Scalars['Boolean']['output']; - /** A list review dismissal allowances for this branch protection rule. */ - reviewDismissalAllowances: ReviewDismissalAllowanceConnection; -}; - - -/** A branch protection rule. */ -export type BranchProtectionRuleBranchProtectionRuleConflictsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** A branch protection rule. */ -export type BranchProtectionRuleBypassForcePushAllowancesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** A branch protection rule. */ -export type BranchProtectionRuleBypassPullRequestAllowancesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** A branch protection rule. */ -export type BranchProtectionRuleMatchingRefsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - query?: InputMaybe; -}; - - -/** A branch protection rule. */ -export type BranchProtectionRulePushAllowancesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** A branch protection rule. */ -export type BranchProtectionRuleReviewDismissalAllowancesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - -/** A conflict between two branch protection rules. */ -export type BranchProtectionRuleConflict = { - __typename?: 'BranchProtectionRuleConflict'; - /** Identifies the branch protection rule. */ - branchProtectionRule?: Maybe; - /** Identifies the conflicting branch protection rule. */ - conflictingBranchProtectionRule?: Maybe; - /** Identifies the branch ref that has conflicting rules */ - ref?: Maybe; -}; - -/** The connection type for BranchProtectionRuleConflict. */ -export type BranchProtectionRuleConflictConnection = { - __typename?: 'BranchProtectionRuleConflictConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type BranchProtectionRuleConflictEdge = { - __typename?: 'BranchProtectionRuleConflictEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** The connection type for BranchProtectionRule. */ -export type BranchProtectionRuleConnection = { - __typename?: 'BranchProtectionRuleConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type BranchProtectionRuleEdge = { - __typename?: 'BranchProtectionRuleEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - /** Information about a sponsorship to make for a user or organization with a GitHub Sponsors profile, as part of sponsoring many users or organizations at once. */ export type BulkSponsorship = { /** The amount to pay to the sponsorable in US dollars. Valid values: 1-12000. */ @@ -1639,119 +499,6 @@ export type BulkSponsorship = { sponsorableLogin?: InputMaybe; }; -/** Types that can represent a repository ruleset bypass actor. */ -export type BypassActor = App | Team; - -/** A user, team, or app who has the ability to bypass a force push requirement on a protected branch. */ -export type BypassForcePushAllowance = Node & { - __typename?: 'BypassForcePushAllowance'; - /** The actor that can force push. */ - actor?: Maybe; - /** Identifies the branch protection rule associated with the allowed user, team, or app. */ - branchProtectionRule?: Maybe; - /** The Node ID of the BypassForcePushAllowance object */ - id: Scalars['ID']['output']; -}; - -/** The connection type for BypassForcePushAllowance. */ -export type BypassForcePushAllowanceConnection = { - __typename?: 'BypassForcePushAllowanceConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type BypassForcePushAllowanceEdge = { - __typename?: 'BypassForcePushAllowanceEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** A user, team, or app who has the ability to bypass a pull request requirement on a protected branch. */ -export type BypassPullRequestAllowance = Node & { - __typename?: 'BypassPullRequestAllowance'; - /** The actor that can bypass. */ - actor?: Maybe; - /** Identifies the branch protection rule associated with the allowed user, team, or app. */ - branchProtectionRule?: Maybe; - /** The Node ID of the BypassPullRequestAllowance object */ - id: Scalars['ID']['output']; -}; - -/** The connection type for BypassPullRequestAllowance. */ -export type BypassPullRequestAllowanceConnection = { - __typename?: 'BypassPullRequestAllowanceConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type BypassPullRequestAllowanceEdge = { - __typename?: 'BypassPullRequestAllowanceEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** The Common Vulnerability Scoring System */ -export type Cvss = { - __typename?: 'CVSS'; - /** The CVSS score associated with this advisory */ - score: Scalars['Float']['output']; - /** The CVSS vector string associated with this advisory */ - vectorString?: Maybe; -}; - -/** A common weakness enumeration */ -export type Cwe = Node & { - __typename?: 'CWE'; - /** The id of the CWE */ - cweId: Scalars['String']['output']; - /** A detailed description of this CWE */ - description: Scalars['String']['output']; - /** The Node ID of the CWE object */ - id: Scalars['ID']['output']; - /** The name of this CWE */ - name: Scalars['String']['output']; -}; - -/** The connection type for CWE. */ -export type CweConnection = { - __typename?: 'CWEConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type CweEdge = { - __typename?: 'CWEEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - /** Autogenerated input type of CancelEnterpriseAdminInvitation */ export type CancelEnterpriseAdminInvitationInput = { /** A unique identifier for the client performing the mutation. */ @@ -1760,17 +507,6 @@ export type CancelEnterpriseAdminInvitationInput = { invitationId: Scalars['ID']['input']; }; -/** Autogenerated return type of CancelEnterpriseAdminInvitation. */ -export type CancelEnterpriseAdminInvitationPayload = { - __typename?: 'CancelEnterpriseAdminInvitationPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The invitation that was canceled. */ - invitation?: Maybe; - /** A message confirming the result of canceling an administrator invitation. */ - message?: Maybe; -}; - /** Autogenerated input type of CancelEnterpriseMemberInvitation */ export type CancelEnterpriseMemberInvitationInput = { /** A unique identifier for the client performing the mutation. */ @@ -1779,17 +515,6 @@ export type CancelEnterpriseMemberInvitationInput = { invitationId: Scalars['ID']['input']; }; -/** Autogenerated return type of CancelEnterpriseMemberInvitation. */ -export type CancelEnterpriseMemberInvitationPayload = { - __typename?: 'CancelEnterpriseMemberInvitationPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The invitation that was canceled. */ - invitation?: Maybe; - /** A message confirming the result of canceling an member invitation. */ - message?: Maybe; -}; - /** Autogenerated input type of CancelSponsorship */ export type CancelSponsorshipInput = { /** A unique identifier for the client performing the mutation. */ @@ -1804,15 +529,6 @@ export type CancelSponsorshipInput = { sponsorableLogin?: InputMaybe; }; -/** Autogenerated return type of CancelSponsorship. */ -export type CancelSponsorshipPayload = { - __typename?: 'CancelSponsorshipPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The tier that was being used at the time of cancellation. */ - sponsorsTier?: Maybe; -}; - /** Autogenerated input type of ChangeUserStatus */ export type ChangeUserStatusInput = { /** A unique identifier for the client performing the mutation. */ @@ -1829,49 +545,6 @@ export type ChangeUserStatusInput = { organizationId?: InputMaybe; }; -/** Autogenerated return type of ChangeUserStatus. */ -export type ChangeUserStatusPayload = { - __typename?: 'ChangeUserStatusPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** Your updated status. */ - status?: Maybe; -}; - -/** A single check annotation. */ -export type CheckAnnotation = { - __typename?: 'CheckAnnotation'; - /** The annotation's severity level. */ - annotationLevel?: Maybe; - /** The path to the file that this annotation was made on. */ - blobUrl: Scalars['URI']['output']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The position of this annotation. */ - location: CheckAnnotationSpan; - /** The annotation's message. */ - message: Scalars['String']['output']; - /** The path that this annotation was made on. */ - path: Scalars['String']['output']; - /** Additional information about the annotation. */ - rawDetails?: Maybe; - /** The annotation's title */ - title?: Maybe; -}; - -/** The connection type for CheckAnnotation. */ -export type CheckAnnotationConnection = { - __typename?: 'CheckAnnotationConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - /** Information from a check run analysis to specific lines of code. */ export type CheckAnnotationData = { /** Represents an annotation's information level */ @@ -1888,15 +561,6 @@ export type CheckAnnotationData = { title?: InputMaybe; }; -/** An edge in a connection. */ -export type CheckAnnotationEdge = { - __typename?: 'CheckAnnotationEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - /** Represents an annotation's information level. */ export type CheckAnnotationLevel = /** An annotation indicating an inescapable error. */ @@ -1906,15 +570,6 @@ export type CheckAnnotationLevel = /** An annotation indicating an ignorable error. */ | 'WARNING'; -/** A character position in a check annotation. */ -export type CheckAnnotationPosition = { - __typename?: 'CheckAnnotationPosition'; - /** Column number (1 indexed). */ - column?: Maybe; - /** Line number (1 indexed). */ - line: Scalars['Int']['output']; -}; - /** Information from a check run analysis to specific lines of code. */ export type CheckAnnotationRange = { /** The ending column of the range. */ @@ -1927,15 +582,6 @@ export type CheckAnnotationRange = { startLine: Scalars['Int']['input']; }; -/** An inclusive pair of positions for a check annotation. */ -export type CheckAnnotationSpan = { - __typename?: 'CheckAnnotationSpan'; - /** End position (inclusive). */ - end: CheckAnnotationPosition; - /** Start position (inclusive). */ - start: CheckAnnotationPosition; -}; - /** The possible states for a check suite or run conclusion. */ export type CheckConclusionState = /** The check suite or run requires action. */ @@ -1957,81 +603,6 @@ export type CheckConclusionState = /** The check suite or run has timed out. */ | 'TIMED_OUT'; -/** A check run. */ -export type CheckRun = Node & RequirableByPullRequest & UniformResourceLocatable & { - __typename?: 'CheckRun'; - /** The check run's annotations */ - annotations?: Maybe; - /** The check suite that this run is a part of. */ - checkSuite: CheckSuite; - /** Identifies the date and time when the check run was completed. */ - completedAt?: Maybe; - /** The conclusion of the check run. */ - conclusion?: Maybe; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The corresponding deployment for this job, if any */ - deployment?: Maybe; - /** The URL from which to find full details of the check run on the integrator's site. */ - detailsUrl?: Maybe; - /** A reference for the check run on the integrator's system. */ - externalId?: Maybe; - /** The Node ID of the CheckRun object */ - id: Scalars['ID']['output']; - /** Whether this is required to pass before merging for a specific pull request. */ - isRequired: Scalars['Boolean']['output']; - /** The name of the check for this check run. */ - name: Scalars['String']['output']; - /** Information about a pending deployment, if any, in this check run */ - pendingDeploymentRequest?: Maybe; - /** The permalink to the check run summary. */ - permalink: Scalars['URI']['output']; - /** The repository associated with this check run. */ - repository: Repository; - /** The HTTP path for this check run. */ - resourcePath: Scalars['URI']['output']; - /** Identifies the date and time when the check run was started. */ - startedAt?: Maybe; - /** The current status of the check run. */ - status: CheckStatusState; - /** The check run's steps */ - steps?: Maybe; - /** A string representing the check run's summary */ - summary?: Maybe; - /** A string representing the check run's text */ - text?: Maybe; - /** A string representing the check run */ - title?: Maybe; - /** The HTTP URL for this check run. */ - url: Scalars['URI']['output']; -}; - - -/** A check run. */ -export type CheckRunAnnotationsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** A check run. */ -export type CheckRunIsRequiredArgs = { - pullRequestId?: InputMaybe; - pullRequestNumber?: InputMaybe; -}; - - -/** A check run. */ -export type CheckRunStepsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - number?: InputMaybe; -}; - /** Possible further actions the integrator can perform. */ export type CheckRunAction = { /** A short explanation of what this action would do. */ @@ -2042,28 +613,6 @@ export type CheckRunAction = { label: Scalars['String']['input']; }; -/** The connection type for CheckRun. */ -export type CheckRunConnection = { - __typename?: 'CheckRunConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type CheckRunEdge = { - __typename?: 'CheckRunEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - /** The filters that are available when fetching check runs. */ export type CheckRunFilter = { /** Filters the check runs created by this application ID. */ @@ -2135,15 +684,6 @@ export type CheckRunState = /** The check run is in waiting state. */ | 'WAITING'; -/** Represents a count of the state of a check run. */ -export type CheckRunStateCount = { - __typename?: 'CheckRunStateCount'; - /** The number of check runs with this state. */ - count: Scalars['Int']['output']; - /** The state of a check run. */ - state: CheckRunState; -}; - /** The possible types of check runs. */ export type CheckRunType = /** Every check run available. */ @@ -2166,112 +706,6 @@ export type CheckStatusState = /** The check suite or run is in waiting state. */ | 'WAITING'; -/** A single check step. */ -export type CheckStep = { - __typename?: 'CheckStep'; - /** Identifies the date and time when the check step was completed. */ - completedAt?: Maybe; - /** The conclusion of the check step. */ - conclusion?: Maybe; - /** A reference for the check step on the integrator's system. */ - externalId?: Maybe; - /** The step's name. */ - name: Scalars['String']['output']; - /** The index of the step in the list of steps of the parent check run. */ - number: Scalars['Int']['output']; - /** Number of seconds to completion. */ - secondsToCompletion?: Maybe; - /** Identifies the date and time when the check step was started. */ - startedAt?: Maybe; - /** The current status of the check step. */ - status: CheckStatusState; -}; - -/** The connection type for CheckStep. */ -export type CheckStepConnection = { - __typename?: 'CheckStepConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type CheckStepEdge = { - __typename?: 'CheckStepEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** A check suite. */ -export type CheckSuite = Node & { - __typename?: 'CheckSuite'; - /** The GitHub App which created this check suite. */ - app?: Maybe; - /** The name of the branch for this check suite. */ - branch?: Maybe; - /** The check runs associated with a check suite. */ - checkRuns?: Maybe; - /** The commit for this check suite */ - commit: Commit; - /** The conclusion of this check suite. */ - conclusion?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The user who triggered the check suite. */ - creator?: Maybe; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The Node ID of the CheckSuite object */ - id: Scalars['ID']['output']; - /** A list of open pull requests matching the check suite. */ - matchingPullRequests?: Maybe; - /** The push that triggered this check suite. */ - push?: Maybe; - /** The repository associated with this check suite. */ - repository: Repository; - /** The HTTP path for this check suite */ - resourcePath: Scalars['URI']['output']; - /** The status of this check suite. */ - status: CheckStatusState; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']['output']; - /** The HTTP URL for this check suite */ - url: Scalars['URI']['output']; - /** The workflow run associated with this check suite. */ - workflowRun?: Maybe; -}; - - -/** A check suite. */ -export type CheckSuiteCheckRunsArgs = { - after?: InputMaybe; - before?: InputMaybe; - filterBy?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** A check suite. */ -export type CheckSuiteMatchingPullRequestsArgs = { - after?: InputMaybe; - baseRefName?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - headRefName?: InputMaybe; - labels?: InputMaybe>; - last?: InputMaybe; - orderBy?: InputMaybe; - states?: InputMaybe>; -}; - /** The auto-trigger preferences that are available for check suites. */ export type CheckSuiteAutoTriggerPreference = { /** The node ID of the application that owns the check suite. */ @@ -2280,28 +714,6 @@ export type CheckSuiteAutoTriggerPreference = { setting: Scalars['Boolean']['input']; }; -/** The connection type for CheckSuite. */ -export type CheckSuiteConnection = { - __typename?: 'CheckSuiteConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type CheckSuiteEdge = { - __typename?: 'CheckSuiteEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - /** The filters that are available when fetching check suites. */ export type CheckSuiteFilter = { /** Filters the check suites created by this application ID. */ @@ -2310,9 +722,6 @@ export type CheckSuiteFilter = { checkName?: InputMaybe; }; -/** An object which can have its data claimed or claim data from another. */ -export type Claimable = Mannequin | User; - /** Autogenerated input type of ClearLabelsFromLabelable */ export type ClearLabelsFromLabelableInput = { /** A unique identifier for the client performing the mutation. */ @@ -2321,15 +730,6 @@ export type ClearLabelsFromLabelableInput = { labelableId: Scalars['ID']['input']; }; -/** Autogenerated return type of ClearLabelsFromLabelable. */ -export type ClearLabelsFromLabelablePayload = { - __typename?: 'ClearLabelsFromLabelablePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The item that was unlabeled. */ - labelable?: Maybe; -}; - /** Autogenerated input type of ClearProjectV2ItemFieldValue */ export type ClearProjectV2ItemFieldValueInput = { /** A unique identifier for the client performing the mutation. */ @@ -2342,15 +742,6 @@ export type ClearProjectV2ItemFieldValueInput = { projectId: Scalars['ID']['input']; }; -/** Autogenerated return type of ClearProjectV2ItemFieldValue. */ -export type ClearProjectV2ItemFieldValuePayload = { - __typename?: 'ClearProjectV2ItemFieldValuePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The updated item. */ - projectV2Item?: Maybe; -}; - /** Autogenerated input type of CloneProject */ export type CloneProjectInput = { /** The description of the project. */ @@ -2369,17 +760,6 @@ export type CloneProjectInput = { targetOwnerId: Scalars['ID']['input']; }; -/** Autogenerated return type of CloneProject. */ -export type CloneProjectPayload = { - __typename?: 'CloneProjectPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The id of the JobStatus for populating cloned fields. */ - jobStatusId?: Maybe; - /** The new cloned project. */ - project?: Maybe; -}; - /** Autogenerated input type of CloneTemplateRepository */ export type CloneTemplateRepositoryInput = { /** A unique identifier for the client performing the mutation. */ @@ -2398,27 +778,6 @@ export type CloneTemplateRepositoryInput = { visibility: RepositoryVisibility; }; -/** Autogenerated return type of CloneTemplateRepository. */ -export type CloneTemplateRepositoryPayload = { - __typename?: 'CloneTemplateRepositoryPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new repository. */ - repository?: Maybe; -}; - -/** An object that can be closed */ -export type Closable = { - /** Indicates if the object is closed (definition of closed may depend on type) */ - closed: Scalars['Boolean']['output']; - /** Identifies the date and time when the object was closed. */ - closedAt?: Maybe; - /** Indicates if the object can be closed by the viewer. */ - viewerCanClose: Scalars['Boolean']['output']; - /** Indicates if the object can be reopened by the viewer. */ - viewerCanReopen: Scalars['Boolean']['output']; -}; - /** Autogenerated input type of CloseDiscussion */ export type CloseDiscussionInput = { /** A unique identifier for the client performing the mutation. */ @@ -2429,15 +788,6 @@ export type CloseDiscussionInput = { reason?: InputMaybe; }; -/** Autogenerated return type of CloseDiscussion. */ -export type CloseDiscussionPayload = { - __typename?: 'CloseDiscussionPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The discussion that was closed. */ - discussion?: Maybe; -}; - /** Autogenerated input type of CloseIssue */ export type CloseIssueInput = { /** A unique identifier for the client performing the mutation. */ @@ -2450,15 +800,6 @@ export type CloseIssueInput = { stateReason?: InputMaybe; }; -/** Autogenerated return type of CloseIssue. */ -export type CloseIssuePayload = { - __typename?: 'CloseIssuePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The issue that was closed. */ - issue?: Maybe; -}; - /** Autogenerated input type of ClosePullRequest */ export type ClosePullRequestInput = { /** A unique identifier for the client performing the mutation. */ @@ -2467,82 +808,12 @@ export type ClosePullRequestInput = { pullRequestId: Scalars['ID']['input']; }; -/** Autogenerated return type of ClosePullRequest. */ -export type ClosePullRequestPayload = { - __typename?: 'ClosePullRequestPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The pull request that was closed. */ - pullRequest?: Maybe; -}; - -/** Represents a 'closed' event on any `Closable`. */ -export type ClosedEvent = Node & UniformResourceLocatable & { - __typename?: 'ClosedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Object that was closed. */ - closable: Closable; - /** Object which triggered the creation of this event. */ - closer?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The issue or pull request that this issue was marked as a duplicate of. */ - duplicateOf?: Maybe; - /** The Node ID of the ClosedEvent object */ - id: Scalars['ID']['output']; - /** The HTTP path for this closed event. */ - resourcePath: Scalars['URI']['output']; - /** The reason the issue state was changed to closed. */ - stateReason?: Maybe; - /** The HTTP URL for this closed event. */ - url: Scalars['URI']['output']; -}; - -/** The object which triggered a `ClosedEvent`. */ -export type Closer = Commit | ProjectV2 | PullRequest; - -/** The Code of Conduct for a repository */ -export type CodeOfConduct = Node & { - __typename?: 'CodeOfConduct'; - /** The body of the Code of Conduct */ - body?: Maybe; - /** The Node ID of the CodeOfConduct object */ - id: Scalars['ID']['output']; - /** The key for the Code of Conduct */ - key: Scalars['String']['output']; - /** The formal name of the Code of Conduct */ - name: Scalars['String']['output']; - /** The HTTP path for this Code of Conduct */ - resourcePath?: Maybe; - /** The HTTP URL for this Code of Conduct */ - url?: Maybe; -}; - -/** Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated. */ -export type CodeScanningParameters = { - __typename?: 'CodeScanningParameters'; - /** Tools that must provide code scanning results for this rule to pass. */ - codeScanningTools: Array; -}; - /** Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated. */ export type CodeScanningParametersInput = { /** Tools that must provide code scanning results for this rule to pass. */ codeScanningTools: Array; }; -/** A tool that must provide code scanning results for this rule to pass. */ -export type CodeScanningTool = { - __typename?: 'CodeScanningTool'; - /** The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." */ - alertsThreshold: Scalars['String']['output']; - /** The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." */ - securityAlertsThreshold: Scalars['String']['output']; - /** The name of a code scanning tool */ - tool: Scalars['String']['output']; -}; - /** A tool that must provide code scanning results for this rule to pass. */ export type CodeScanningToolInput = { /** The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](${externalDocsUrl}/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." */ @@ -2562,49 +833,6 @@ export type CollaboratorAffiliation = /** All outside collaborators of an organization-owned subject. */ | 'OUTSIDE'; -/** Represents a comment. */ -export type Comment = { - /** The actor who authored the comment. */ - author?: Maybe; - /** Author's association with the subject of the comment. */ - authorAssociation: CommentAuthorAssociation; - /** The body as Markdown. */ - body: Scalars['String']['output']; - /** The body rendered to HTML. */ - bodyHTML: Scalars['HTML']['output']; - /** The body rendered to text. */ - bodyText: Scalars['String']['output']; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** Check if this comment was created via an email reply. */ - createdViaEmail: Scalars['Boolean']['output']; - /** The actor who edited the comment. */ - editor?: Maybe; - /** The Node ID of the Comment object */ - id: Scalars['ID']['output']; - /** Check if this comment was edited and includes an edit with the creation data */ - includesCreatedEdit: Scalars['Boolean']['output']; - /** The moment the editor made the last edit */ - lastEditedAt?: Maybe; - /** Identifies when the comment was published at. */ - publishedAt?: Maybe; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']['output']; - /** A list of edits to this content. */ - userContentEdits?: Maybe; - /** Did the viewer author this comment. */ - viewerDidAuthor: Scalars['Boolean']['output']; -}; - - -/** Represents a comment. */ -export type CommentUserContentEditsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - /** A comment author association with repository. */ export type CommentAuthorAssociation = /** Author has been invited to collaborate on the repository. */ @@ -2641,224 +869,6 @@ export type CommentCannotUpdateReason = /** At least one email address must be verified to update this comment. */ | 'VERIFIED_EMAIL_REQUIRED'; -/** Represents a 'comment_deleted' event on a given issue or pull request. */ -export type CommentDeletedEvent = Node & { - __typename?: 'CommentDeletedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The user who authored the deleted comment. */ - deletedCommentAuthor?: Maybe; - /** The Node ID of the CommentDeletedEvent object */ - id: Scalars['ID']['output']; -}; - -/** Represents a Git commit. */ -export type Commit = GitObject & Node & Subscribable & UniformResourceLocatable & { - __typename?: 'Commit'; - /** An abbreviated version of the Git object ID */ - abbreviatedOid: Scalars['String']['output']; - /** The number of additions in this commit. */ - additions: Scalars['Int']['output']; - /** The merged Pull Request that introduced the commit to the repository. If the commit is not present in the default branch, additionally returns open Pull Requests associated with the commit */ - associatedPullRequests?: Maybe; - /** Authorship details of the commit. */ - author?: Maybe; - /** Check if the committer and the author match. */ - authoredByCommitter: Scalars['Boolean']['output']; - /** The datetime when this commit was authored. */ - authoredDate: Scalars['DateTime']['output']; - /** - * The list of authors for this commit based on the git author and the Co-authored-by - * message trailer. The git author will always be first. - * - */ - authors: GitActorConnection; - /** Fetches `git blame` information. */ - blame: Blame; - /** - * We recommend using the `changedFilesIfAvailable` field instead of `changedFiles`, as `changedFiles` will cause your request to return an error if GitHub is unable to calculate the number of changed files. - * @deprecated `changedFiles` will be removed. Use `changedFilesIfAvailable` instead. Removal on 2023-01-01 UTC. - */ - changedFiles: Scalars['Int']['output']; - /** The number of changed files in this commit. If GitHub is unable to calculate the number of changed files (for example due to a timeout), this will return `null`. We recommend using this field instead of `changedFiles`. */ - changedFilesIfAvailable?: Maybe; - /** The check suites associated with a commit. */ - checkSuites?: Maybe; - /** Comments made on the commit. */ - comments: CommitCommentConnection; - /** The HTTP path for this Git object */ - commitResourcePath: Scalars['URI']['output']; - /** The HTTP URL for this Git object */ - commitUrl: Scalars['URI']['output']; - /** The datetime when this commit was committed. */ - committedDate: Scalars['DateTime']['output']; - /** Check if committed via GitHub web UI. */ - committedViaWeb: Scalars['Boolean']['output']; - /** Committer details of the commit. */ - committer?: Maybe; - /** The number of deletions in this commit. */ - deletions: Scalars['Int']['output']; - /** The deployments associated with a commit. */ - deployments?: Maybe; - /** The tree entry representing the file located at the given path. */ - file?: Maybe; - /** The linear commit history starting from (and including) this commit, in the same order as `git log`. */ - history: CommitHistoryConnection; - /** The Node ID of the Commit object */ - id: Scalars['ID']['output']; - /** The Git commit message */ - message: Scalars['String']['output']; - /** The Git commit message body */ - messageBody: Scalars['String']['output']; - /** The commit message body rendered to HTML. */ - messageBodyHTML: Scalars['HTML']['output']; - /** The Git commit message headline */ - messageHeadline: Scalars['String']['output']; - /** The commit message headline rendered to HTML. */ - messageHeadlineHTML: Scalars['HTML']['output']; - /** The Git object ID */ - oid: Scalars['GitObjectID']['output']; - /** The organization this commit was made on behalf of. */ - onBehalfOf?: Maybe; - /** The parents of a commit. */ - parents: CommitConnection; - /** - * The datetime when this commit was pushed. - * @deprecated `pushedDate` is no longer supported. Removal on 2023-07-01 UTC. - */ - pushedDate?: Maybe; - /** The Repository this commit belongs to */ - repository: Repository; - /** The HTTP path for this commit */ - resourcePath: Scalars['URI']['output']; - /** Commit signing information, if present. */ - signature?: Maybe; - /** Status information for this commit */ - status?: Maybe; - /** Check and Status rollup information for this commit. */ - statusCheckRollup?: Maybe; - /** Returns a list of all submodules in this repository as of this Commit parsed from the .gitmodules file. */ - submodules: SubmoduleConnection; - /** - * Returns a URL to download a tarball archive for a repository. - * Note: For private repositories, these links are temporary and expire after five minutes. - */ - tarballUrl: Scalars['URI']['output']; - /** Commit's root Tree */ - tree: Tree; - /** The HTTP path for the tree of this commit */ - treeResourcePath: Scalars['URI']['output']; - /** The HTTP URL for the tree of this commit */ - treeUrl: Scalars['URI']['output']; - /** The HTTP URL for this commit */ - url: Scalars['URI']['output']; - /** Check if the viewer is able to change their subscription status for the repository. */ - viewerCanSubscribe: Scalars['Boolean']['output']; - /** Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. */ - viewerSubscription?: Maybe; - /** - * Returns a URL to download a zipball archive for a repository. - * Note: For private repositories, these links are temporary and expire after five minutes. - */ - zipballUrl: Scalars['URI']['output']; -}; - - -/** Represents a Git commit. */ -export type CommitAssociatedPullRequestsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - orderBy?: InputMaybe; -}; - - -/** Represents a Git commit. */ -export type CommitAuthorsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** Represents a Git commit. */ -export type CommitBlameArgs = { - path: Scalars['String']['input']; -}; - - -/** Represents a Git commit. */ -export type CommitCheckSuitesArgs = { - after?: InputMaybe; - before?: InputMaybe; - filterBy?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** Represents a Git commit. */ -export type CommitCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** Represents a Git commit. */ -export type CommitDeploymentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - environments?: InputMaybe>; - first?: InputMaybe; - last?: InputMaybe; - orderBy?: InputMaybe; -}; - - -/** Represents a Git commit. */ -export type CommitFileArgs = { - path: Scalars['String']['input']; -}; - - -/** Represents a Git commit. */ -export type CommitHistoryArgs = { - after?: InputMaybe; - author?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - path?: InputMaybe; - since?: InputMaybe; - until?: InputMaybe; -}; - - -/** Represents a Git commit. */ -export type CommitParentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - - -/** Represents a Git commit. */ -export type CommitSubmodulesArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - /** Specifies an author for filtering Git commits. */ export type CommitAuthor = { /** Email addresses to filter by. Commits authored by any of the specified email addresses will be returned. */ @@ -2867,19 +877,6 @@ export type CommitAuthor = { id?: InputMaybe; }; -/** Parameters to be used for the commit_author_email_pattern rule */ -export type CommitAuthorEmailPatternParameters = { - __typename?: 'CommitAuthorEmailPatternParameters'; - /** How this rule appears when configuring it. */ - name?: Maybe; - /** If true, the rule will fail if the pattern matches. */ - negate: Scalars['Boolean']['output']; - /** The operator to use for matching. */ - operator: Scalars['String']['output']; - /** The pattern to match with. */ - pattern: Scalars['String']['output']; -}; - /** Parameters to be used for the commit_author_email_pattern rule */ export type CommitAuthorEmailPatternParametersInput = { /** How this rule appears when configuring it. */ @@ -2892,156 +889,6 @@ export type CommitAuthorEmailPatternParametersInput = { pattern: Scalars['String']['input']; }; -/** Represents a comment on a given Commit. */ -export type CommitComment = Comment & Deletable & Minimizable & Node & Reactable & RepositoryNode & Updatable & UpdatableComment & { - __typename?: 'CommitComment'; - /** The actor who authored the comment. */ - author?: Maybe; - /** Author's association with the subject of the comment. */ - authorAssociation: CommentAuthorAssociation; - /** Identifies the comment body. */ - body: Scalars['String']['output']; - /** The body rendered to HTML. */ - bodyHTML: Scalars['HTML']['output']; - /** The body rendered to text. */ - bodyText: Scalars['String']['output']; - /** Identifies the commit associated with the comment, if the commit exists. */ - commit?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** Check if this comment was created via an email reply. */ - createdViaEmail: Scalars['Boolean']['output']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The actor who edited the comment. */ - editor?: Maybe; - /** The Node ID of the CommitComment object */ - id: Scalars['ID']['output']; - /** Check if this comment was edited and includes an edit with the creation data */ - includesCreatedEdit: Scalars['Boolean']['output']; - /** Returns whether or not a comment has been minimized. */ - isMinimized: Scalars['Boolean']['output']; - /** The moment the editor made the last edit */ - lastEditedAt?: Maybe; - /** Returns why the comment was minimized. One of `abuse`, `off-topic`, `outdated`, `resolved`, `duplicate` and `spam`. Note that the case and formatting of these values differs from the inputs to the `MinimizeComment` mutation. */ - minimizedReason?: Maybe; - /** Identifies the file path associated with the comment. */ - path?: Maybe; - /** Identifies the line position associated with the comment. */ - position?: Maybe; - /** Identifies when the comment was published at. */ - publishedAt?: Maybe; - /** A list of reactions grouped by content left on the subject. */ - reactionGroups?: Maybe>; - /** A list of Reactions left on the Issue. */ - reactions: ReactionConnection; - /** The repository associated with this node. */ - repository: Repository; - /** The HTTP path permalink for this commit comment. */ - resourcePath: Scalars['URI']['output']; - /** Identifies the date and time when the object was last updated. */ - updatedAt: Scalars['DateTime']['output']; - /** The HTTP URL permalink for this commit comment. */ - url: Scalars['URI']['output']; - /** A list of edits to this content. */ - userContentEdits?: Maybe; - /** Check if the current viewer can delete this object. */ - viewerCanDelete: Scalars['Boolean']['output']; - /** Check if the current viewer can minimize this object. */ - viewerCanMinimize: Scalars['Boolean']['output']; - /** Can user react to this subject */ - viewerCanReact: Scalars['Boolean']['output']; - /** Check if the current viewer can unminimize this object. */ - viewerCanUnminimize: Scalars['Boolean']['output']; - /** Check if the current viewer can update this object. */ - viewerCanUpdate: Scalars['Boolean']['output']; - /** Reasons why the current viewer can not update this comment. */ - viewerCannotUpdateReasons: Array; - /** Did the viewer author this comment. */ - viewerDidAuthor: Scalars['Boolean']['output']; -}; - - -/** Represents a comment on a given Commit. */ -export type CommitCommentReactionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - content?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - orderBy?: InputMaybe; -}; - - -/** Represents a comment on a given Commit. */ -export type CommitCommentUserContentEditsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - -/** The connection type for CommitComment. */ -export type CommitCommentConnection = { - __typename?: 'CommitCommentConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - -/** An edge in a connection. */ -export type CommitCommentEdge = { - __typename?: 'CommitCommentEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** A thread of comments on a commit. */ -export type CommitCommentThread = Node & RepositoryNode & { - __typename?: 'CommitCommentThread'; - /** The comments that exist in this thread. */ - comments: CommitCommentConnection; - /** The commit the comments were made on. */ - commit?: Maybe; - /** The Node ID of the CommitCommentThread object */ - id: Scalars['ID']['output']; - /** The file the comments were made on. */ - path?: Maybe; - /** The position in the diff for the commit that the comment was made on. */ - position?: Maybe; - /** The repository associated with this node. */ - repository: Repository; -}; - - -/** A thread of comments on a commit. */ -export type CommitCommentThreadCommentsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - -/** The connection type for Commit. */ -export type CommitConnection = { - __typename?: 'CommitConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - /** Ordering options for commit contribution connections. */ export type CommitContributionOrder = { /** The ordering direction. */ @@ -3057,51 +904,6 @@ export type CommitContributionOrderField = /** Order commit contributions by when they were made. */ | 'OCCURRED_AT'; -/** This aggregates commits made by a user within one repository. */ -export type CommitContributionsByRepository = { - __typename?: 'CommitContributionsByRepository'; - /** The commit contributions, each representing a day. */ - contributions: CreatedCommitContributionConnection; - /** The repository in which the commits were made. */ - repository: Repository; - /** The HTTP path for the user's commits to the repository in this time range. */ - resourcePath: Scalars['URI']['output']; - /** The HTTP URL for the user's commits to the repository in this time range. */ - url: Scalars['URI']['output']; -}; - - -/** This aggregates commits made by a user within one repository. */ -export type CommitContributionsByRepositoryContributionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - orderBy?: InputMaybe; -}; - -/** An edge in a connection. */ -export type CommitEdge = { - __typename?: 'CommitEdge'; - /** A cursor for use in pagination. */ - cursor: Scalars['String']['output']; - /** The item at the end of the edge. */ - node?: Maybe; -}; - -/** The connection type for Commit. */ -export type CommitHistoryConnection = { - __typename?: 'CommitHistoryConnection'; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - /** A message to include with a new commit */ export type CommitMessage = { /** The body of the message. */ @@ -3110,19 +912,6 @@ export type CommitMessage = { headline: Scalars['String']['input']; }; -/** Parameters to be used for the commit_message_pattern rule */ -export type CommitMessagePatternParameters = { - __typename?: 'CommitMessagePatternParameters'; - /** How this rule appears when configuring it. */ - name?: Maybe; - /** If true, the rule will fail if the pattern matches. */ - negate: Scalars['Boolean']['output']; - /** The operator to use for matching. */ - operator: Scalars['String']['output']; - /** The pattern to match with. */ - pattern: Scalars['String']['output']; -}; - /** Parameters to be used for the commit_message_pattern rule */ export type CommitMessagePatternParametersInput = { /** How this rule appears when configuring it. */ @@ -3169,19 +958,6 @@ export type CommittableBranch = { repositoryNameWithOwner?: InputMaybe; }; -/** Parameters to be used for the committer_email_pattern rule */ -export type CommitterEmailPatternParameters = { - __typename?: 'CommitterEmailPatternParameters'; - /** How this rule appears when configuring it. */ - name?: Maybe; - /** If true, the rule will fail if the pattern matches. */ - negate: Scalars['Boolean']['output']; - /** The operator to use for matching. */ - operator: Scalars['String']['output']; - /** The pattern to match with. */ - pattern: Scalars['String']['output']; -}; - /** Parameters to be used for the committer_email_pattern rule */ export type CommitterEmailPatternParametersInput = { /** How this rule appears when configuring it. */ @@ -3194,49 +970,6 @@ export type CommitterEmailPatternParametersInput = { pattern: Scalars['String']['input']; }; -/** Represents a comparison between two commit revisions. */ -export type Comparison = Node & { - __typename?: 'Comparison'; - /** The number of commits ahead of the base branch. */ - aheadBy: Scalars['Int']['output']; - /** The base revision of this comparison. */ - baseTarget: GitObject; - /** The number of commits behind the base branch. */ - behindBy: Scalars['Int']['output']; - /** The commits which compose this comparison. */ - commits: ComparisonCommitConnection; - /** The head revision of this comparison. */ - headTarget: GitObject; - /** The Node ID of the Comparison object */ - id: Scalars['ID']['output']; - /** The status of this comparison. */ - status: ComparisonStatus; -}; - - -/** Represents a comparison between two commit revisions. */ -export type ComparisonCommitsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; -}; - -/** The connection type for Commit. */ -export type ComparisonCommitConnection = { - __typename?: 'ComparisonCommitConnection'; - /** The total count of authors and co-authors across all commits. */ - authorCount: Scalars['Int']['output']; - /** A list of edges. */ - edges?: Maybe>>; - /** A list of nodes. */ - nodes?: Maybe>>; - /** Information to aid in pagination. */ - pageInfo: PageInfo; - /** Identifies the total count of items in the connection. */ - totalCount: Scalars['Int']['output']; -}; - /** The status of a git comparison between two refs. */ export type ComparisonStatus = /** The head ref is ahead of the base ref. */ @@ -3248,108 +981,6 @@ export type ComparisonStatus = /** The head ref and base ref are identical. */ | 'IDENTICAL'; -/** Represents a 'connected' event on a given issue or pull request. */ -export type ConnectedEvent = Node & { - __typename?: 'ConnectedEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the ConnectedEvent object */ - id: Scalars['ID']['output']; - /** Reference originated in a different repository. */ - isCrossRepository: Scalars['Boolean']['output']; - /** Issue or pull request that made the reference. */ - source: ReferencedSubject; - /** Issue or pull request which was connected. */ - subject: ReferencedSubject; -}; - -/** The Contributing Guidelines for a repository. */ -export type ContributingGuidelines = { - __typename?: 'ContributingGuidelines'; - /** The body of the Contributing Guidelines. */ - body?: Maybe; - /** The HTTP path for the Contributing Guidelines. */ - resourcePath?: Maybe; - /** The HTTP URL for the Contributing Guidelines. */ - url?: Maybe; -}; - -/** Represents a contribution a user made on GitHub, such as opening an issue. */ -export type Contribution = { - /** - * Whether this contribution is associated with a record you do not have access to. For - * example, your own 'first issue' contribution may have been made on a repository you can no - * longer access. - * - */ - isRestricted: Scalars['Boolean']['output']; - /** When this contribution was made. */ - occurredAt: Scalars['DateTime']['output']; - /** The HTTP path for this contribution. */ - resourcePath: Scalars['URI']['output']; - /** The HTTP URL for this contribution. */ - url: Scalars['URI']['output']; - /** - * The user who made this contribution. - * - */ - user: User; -}; - -/** A calendar of contributions made on GitHub by a user. */ -export type ContributionCalendar = { - __typename?: 'ContributionCalendar'; - /** A list of hex color codes used in this calendar. The darker the color, the more contributions it represents. */ - colors: Array; - /** Determine if the color set was chosen because it's currently Halloween. */ - isHalloween: Scalars['Boolean']['output']; - /** A list of the months of contributions in this calendar. */ - months: Array; - /** The count of total contributions in the calendar. */ - totalContributions: Scalars['Int']['output']; - /** A list of the weeks of contributions in this calendar. */ - weeks: Array; -}; - -/** Represents a single day of contributions on GitHub by a user. */ -export type ContributionCalendarDay = { - __typename?: 'ContributionCalendarDay'; - /** The hex color code that represents how many contributions were made on this day compared to others in the calendar. */ - color: Scalars['String']['output']; - /** How many contributions were made by the user on this day. */ - contributionCount: Scalars['Int']['output']; - /** Indication of contributions, relative to other days. Can be used to indicate which color to represent this day on a calendar. */ - contributionLevel: ContributionLevel; - /** The day this square represents. */ - date: Scalars['Date']['output']; - /** A number representing which day of the week this square represents, e.g., 1 is Monday. */ - weekday: Scalars['Int']['output']; -}; - -/** A month of contributions in a user's contribution graph. */ -export type ContributionCalendarMonth = { - __typename?: 'ContributionCalendarMonth'; - /** The date of the first day of this month. */ - firstDay: Scalars['Date']['output']; - /** The name of the month. */ - name: Scalars['String']['output']; - /** How many weeks started in this month. */ - totalWeeks: Scalars['Int']['output']; - /** The year the month occurred in. */ - year: Scalars['Int']['output']; -}; - -/** A week of contributions in a user's contribution graph. */ -export type ContributionCalendarWeek = { - __typename?: 'ContributionCalendarWeek'; - /** The days of contributions in this week. */ - contributionDays: Array; - /** The date of the earliest square in this week. */ - firstDay: Scalars['Date']['output']; -}; - /** Varying levels of contributions from none to many. */ export type ContributionLevel = /** Lowest 25% of days of contributions. */ @@ -3369,273 +1000,6 @@ export type ContributionOrder = { direction: OrderDirection; }; -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollection = { - __typename?: 'ContributionsCollection'; - /** Commit contributions made by the user, grouped by repository. */ - commitContributionsByRepository: Array; - /** A calendar of this user's contributions on GitHub. */ - contributionCalendar: ContributionCalendar; - /** The years the user has been making contributions with the most recent year first. */ - contributionYears: Array; - /** - * Determine if this collection's time span ends in the current month. - * - */ - doesEndInCurrentMonth: Scalars['Boolean']['output']; - /** The date of the first restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts. */ - earliestRestrictedContributionDate?: Maybe; - /** The ending date and time of this collection. */ - endedAt: Scalars['DateTime']['output']; - /** The first issue the user opened on GitHub. This will be null if that issue was opened outside the collection's time range and ignoreTimeRange is false. If the issue is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned. */ - firstIssueContribution?: Maybe; - /** The first pull request the user opened on GitHub. This will be null if that pull request was opened outside the collection's time range and ignoreTimeRange is not true. If the pull request is not visible but the user has opted to show private contributions, a RestrictedContribution will be returned. */ - firstPullRequestContribution?: Maybe; - /** The first repository the user created on GitHub. This will be null if that first repository was created outside the collection's time range and ignoreTimeRange is false. If the repository is not visible, then a RestrictedContribution is returned. */ - firstRepositoryContribution?: Maybe; - /** Does the user have any more activity in the timeline that occurred prior to the collection's time range? */ - hasActivityInThePast: Scalars['Boolean']['output']; - /** Determine if there are any contributions in this collection. */ - hasAnyContributions: Scalars['Boolean']['output']; - /** Determine if the user made any contributions in this time frame whose details are not visible because they were made in a private repository. Can only be true if the user enabled private contribution counts. */ - hasAnyRestrictedContributions: Scalars['Boolean']['output']; - /** Whether or not the collector's time span is all within the same day. */ - isSingleDay: Scalars['Boolean']['output']; - /** A list of issues the user opened. */ - issueContributions: CreatedIssueContributionConnection; - /** Issue contributions made by the user, grouped by repository. */ - issueContributionsByRepository: Array; - /** When the user signed up for GitHub. This will be null if that sign up date falls outside the collection's time range and ignoreTimeRange is false. */ - joinedGitHubContribution?: Maybe; - /** The date of the most recent restricted contribution the user made in this time period. Can only be non-null when the user has enabled private contribution counts. */ - latestRestrictedContributionDate?: Maybe; - /** - * When this collection's time range does not include any activity from the user, use this - * to get a different collection from an earlier time range that does have activity. - * - */ - mostRecentCollectionWithActivity?: Maybe; - /** - * Returns a different contributions collection from an earlier time range than this one - * that does not have any contributions. - * - */ - mostRecentCollectionWithoutActivity?: Maybe; - /** - * The issue the user opened on GitHub that received the most comments in the specified - * time frame. - * - */ - popularIssueContribution?: Maybe; - /** - * The pull request the user opened on GitHub that received the most comments in the - * specified time frame. - * - */ - popularPullRequestContribution?: Maybe; - /** Pull request contributions made by the user. */ - pullRequestContributions: CreatedPullRequestContributionConnection; - /** Pull request contributions made by the user, grouped by repository. */ - pullRequestContributionsByRepository: Array; - /** - * Pull request review contributions made by the user. Returns the most recently - * submitted review for each PR reviewed by the user. - * - */ - pullRequestReviewContributions: CreatedPullRequestReviewContributionConnection; - /** Pull request review contributions made by the user, grouped by repository. */ - pullRequestReviewContributionsByRepository: Array; - /** A list of repositories owned by the user that the user created in this time range. */ - repositoryContributions: CreatedRepositoryContributionConnection; - /** A count of contributions made by the user that the viewer cannot access. Only non-zero when the user has chosen to share their private contribution counts. */ - restrictedContributionsCount: Scalars['Int']['output']; - /** The beginning date and time of this collection. */ - startedAt: Scalars['DateTime']['output']; - /** How many commits were made by the user in this time span. */ - totalCommitContributions: Scalars['Int']['output']; - /** How many issues the user opened. */ - totalIssueContributions: Scalars['Int']['output']; - /** How many pull requests the user opened. */ - totalPullRequestContributions: Scalars['Int']['output']; - /** How many pull request reviews the user left. */ - totalPullRequestReviewContributions: Scalars['Int']['output']; - /** How many different repositories the user committed to. */ - totalRepositoriesWithContributedCommits: Scalars['Int']['output']; - /** How many different repositories the user opened issues in. */ - totalRepositoriesWithContributedIssues: Scalars['Int']['output']; - /** How many different repositories the user left pull request reviews in. */ - totalRepositoriesWithContributedPullRequestReviews: Scalars['Int']['output']; - /** How many different repositories the user opened pull requests in. */ - totalRepositoriesWithContributedPullRequests: Scalars['Int']['output']; - /** How many repositories the user created. */ - totalRepositoryContributions: Scalars['Int']['output']; - /** The user who made the contributions in this collection. */ - user: User; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionCommitContributionsByRepositoryArgs = { - maxRepositories?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionIssueContributionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - excludeFirst?: InputMaybe; - excludePopular?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - orderBy?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionIssueContributionsByRepositoryArgs = { - excludeFirst?: InputMaybe; - excludePopular?: InputMaybe; - maxRepositories?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionPullRequestContributionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - excludeFirst?: InputMaybe; - excludePopular?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - orderBy?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionPullRequestContributionsByRepositoryArgs = { - excludeFirst?: InputMaybe; - excludePopular?: InputMaybe; - maxRepositories?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionPullRequestReviewContributionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - orderBy?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionPullRequestReviewContributionsByRepositoryArgs = { - maxRepositories?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionRepositoryContributionsArgs = { - after?: InputMaybe; - before?: InputMaybe; - excludeFirst?: InputMaybe; - first?: InputMaybe; - last?: InputMaybe; - orderBy?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionTotalIssueContributionsArgs = { - excludeFirst?: InputMaybe; - excludePopular?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionTotalPullRequestContributionsArgs = { - excludeFirst?: InputMaybe; - excludePopular?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionTotalRepositoriesWithContributedIssuesArgs = { - excludeFirst?: InputMaybe; - excludePopular?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionTotalRepositoriesWithContributedPullRequestsArgs = { - excludeFirst?: InputMaybe; - excludePopular?: InputMaybe; -}; - - -/** - * A collection of contributions made by a user, including opened issues, commits, and pull requests. - * Contributions in private and internal repositories are only included with the optional read:user scope. - * - */ -export type ContributionsCollectionTotalRepositoryContributionsArgs = { - excludeFirst?: InputMaybe; -}; - /** Autogenerated input type of ConvertProjectCardNoteToIssue */ export type ConvertProjectCardNoteToIssueInput = { /** The body of the newly created issue. */ @@ -3650,15 +1014,6 @@ export type ConvertProjectCardNoteToIssueInput = { title?: InputMaybe; }; -/** Autogenerated return type of ConvertProjectCardNoteToIssue. */ -export type ConvertProjectCardNoteToIssuePayload = { - __typename?: 'ConvertProjectCardNoteToIssuePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The updated ProjectCard. */ - projectCard?: Maybe; -}; - /** Autogenerated input type of ConvertProjectV2DraftIssueItemToIssue */ export type ConvertProjectV2DraftIssueItemToIssueInput = { /** A unique identifier for the client performing the mutation. */ @@ -3669,15 +1024,6 @@ export type ConvertProjectV2DraftIssueItemToIssueInput = { repositoryId: Scalars['ID']['input']; }; -/** Autogenerated return type of ConvertProjectV2DraftIssueItemToIssue. */ -export type ConvertProjectV2DraftIssueItemToIssuePayload = { - __typename?: 'ConvertProjectV2DraftIssueItemToIssuePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The updated project item. */ - item?: Maybe; -}; - /** Autogenerated input type of ConvertPullRequestToDraft */ export type ConvertPullRequestToDraftInput = { /** A unique identifier for the client performing the mutation. */ @@ -3686,94 +1032,6 @@ export type ConvertPullRequestToDraftInput = { pullRequestId: Scalars['ID']['input']; }; -/** Autogenerated return type of ConvertPullRequestToDraft. */ -export type ConvertPullRequestToDraftPayload = { - __typename?: 'ConvertPullRequestToDraftPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The pull request that is now a draft. */ - pullRequest?: Maybe; -}; - -/** Represents a 'convert_to_draft' event on a given pull request. */ -export type ConvertToDraftEvent = Node & UniformResourceLocatable & { - __typename?: 'ConvertToDraftEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the ConvertToDraftEvent object */ - id: Scalars['ID']['output']; - /** PullRequest referenced by event. */ - pullRequest: PullRequest; - /** The HTTP path for this convert to draft event. */ - resourcePath: Scalars['URI']['output']; - /** The HTTP URL for this convert to draft event. */ - url: Scalars['URI']['output']; -}; - -/** Represents a 'converted_from_draft' event on a given issue or pull request. */ -export type ConvertedFromDraftEvent = Node & ProjectV2Event & { - __typename?: 'ConvertedFromDraftEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The Node ID of the ConvertedFromDraftEvent object */ - id: Scalars['ID']['output']; - /** Project referenced by event. */ - project?: Maybe; - /** Did this event result from workflow automation? */ - wasAutomated: Scalars['Boolean']['output']; -}; - -/** Represents a 'converted_note_to_issue' event on a given issue or pull request. */ -export type ConvertedNoteToIssueEvent = Node & { - __typename?: 'ConvertedNoteToIssueEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** Identifies the primary key from the database. */ - databaseId?: Maybe; - /** The Node ID of the ConvertedNoteToIssueEvent object */ - id: Scalars['ID']['output']; - /** - * Project referenced by event. - * @deprecated Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC. - */ - project?: Maybe; - /** - * Project card referenced by this project event. - * @deprecated Projects (classic) is being deprecated in favor of the new Projects experience, see: https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/. Removal on 2025-04-01 UTC. - */ - projectCard?: Maybe; - /** Column name referenced by this project event. */ - projectColumnName: Scalars['String']['output']; -}; - -/** Represents a 'converted_to_discussion' event on a given issue. */ -export type ConvertedToDiscussionEvent = Node & { - __typename?: 'ConvertedToDiscussionEvent'; - /** Identifies the actor who performed the event. */ - actor?: Maybe; - /** Identifies the date and time when the object was created. */ - createdAt: Scalars['DateTime']['output']; - /** The discussion that the issue was converted into. */ - discussion?: Maybe; - /** The Node ID of the ConvertedToDiscussionEvent object */ - id: Scalars['ID']['output']; -}; - -/** 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. */ -export type CopilotCodeReviewParameters = { - __typename?: 'CopilotCodeReviewParameters'; - /** Copilot automatically reviews draft pull requests before they are marked as ready for review. */ - reviewDraftPullRequests: Scalars['Boolean']['output']; - /** Copilot automatically reviews each new push to the pull request. */ - reviewOnPush: Scalars['Boolean']['output']; -}; - /** 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. */ export type CopilotCodeReviewParametersInput = { /** Copilot automatically reviews draft pull requests before they are marked as ready for review. */ @@ -3782,19 +1040,6 @@ export type CopilotCodeReviewParametersInput = { reviewOnPush?: InputMaybe; }; -/** Copilot endpoint information */ -export type CopilotEndpoints = { - __typename?: 'CopilotEndpoints'; - /** Copilot API endpoint */ - api: Scalars['String']['output']; - /** Copilot origin tracker endpoint */ - originTracker: Scalars['String']['output']; - /** Copilot proxy endpoint */ - proxy: Scalars['String']['output']; - /** Copilot telemetry endpoint */ - telemetry: Scalars['String']['output']; -}; - /** Autogenerated input type of CopyProjectV2 */ export type CopyProjectV2Input = { /** A unique identifier for the client performing the mutation. */ @@ -3809,15 +1054,6 @@ export type CopyProjectV2Input = { title: Scalars['String']['input']; }; -/** Autogenerated return type of CopyProjectV2. */ -export type CopyProjectV2Payload = { - __typename?: 'CopyProjectV2Payload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The copied project. */ - projectV2?: Maybe; -}; - /** Autogenerated input type of CreateAttributionInvitation */ export type CreateAttributionInvitationInput = { /** A unique identifier for the client performing the mutation. */ @@ -3830,19 +1066,6 @@ export type CreateAttributionInvitationInput = { targetId: Scalars['ID']['input']; }; -/** Autogenerated return type of CreateAttributionInvitation. */ -export type CreateAttributionInvitationPayload = { - __typename?: 'CreateAttributionInvitationPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The owner scoping the reattributable data. */ - owner?: Maybe; - /** The account owning the data to reattribute. */ - source?: Maybe; - /** The account which may claim the data. */ - target?: Maybe; -}; - /** Autogenerated input type of CreateBranchProtectionRule */ export type CreateBranchProtectionRuleInput = { /** Can this branch be deleted. */ @@ -3905,15 +1128,6 @@ export type CreateBranchProtectionRuleInput = { reviewDismissalActorIds?: InputMaybe>; }; -/** Autogenerated return type of CreateBranchProtectionRule. */ -export type CreateBranchProtectionRulePayload = { - __typename?: 'CreateBranchProtectionRulePayload'; - /** The newly created BranchProtectionRule. */ - branchProtectionRule?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; - /** Autogenerated input type of CreateCheckRun */ export type CreateCheckRunInput = { /** Possible further actions the integrator can perform, which a user may trigger. */ @@ -3942,15 +1156,6 @@ export type CreateCheckRunInput = { status?: InputMaybe; }; -/** Autogenerated return type of CreateCheckRun. */ -export type CreateCheckRunPayload = { - __typename?: 'CreateCheckRunPayload'; - /** The newly created check run. */ - checkRun?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; - /** Autogenerated input type of CreateCheckSuite */ export type CreateCheckSuiteInput = { /** A unique identifier for the client performing the mutation. */ @@ -3961,15 +1166,6 @@ export type CreateCheckSuiteInput = { repositoryId: Scalars['ID']['input']; }; -/** Autogenerated return type of CreateCheckSuite. */ -export type CreateCheckSuitePayload = { - __typename?: 'CreateCheckSuitePayload'; - /** The newly created check suite. */ - checkSuite?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; -}; - /** Autogenerated input type of CreateCommitOnBranch */ export type CreateCommitOnBranchInput = { /** The Ref to be updated. Must be a branch. */ @@ -3984,17 +1180,6 @@ export type CreateCommitOnBranchInput = { message: CommitMessage; }; -/** Autogenerated return type of CreateCommitOnBranch. */ -export type CreateCommitOnBranchPayload = { - __typename?: 'CreateCommitOnBranchPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new commit. */ - commit?: Maybe; - /** The ref which has been updated to point to the new commit. */ - ref?: Maybe; -}; - /** Autogenerated input type of CreateDeployment */ export type CreateDeploymentInput = { /** Attempt to automatically merge the default branch into the requested ref, defaults to true. */ @@ -4017,17 +1202,6 @@ export type CreateDeploymentInput = { task?: InputMaybe; }; -/** Autogenerated return type of CreateDeployment. */ -export type CreateDeploymentPayload = { - __typename?: 'CreateDeploymentPayload'; - /** True if the default branch has been auto-merged into the deployment ref. */ - autoMerged?: Maybe; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new deployment. */ - deployment?: Maybe; -}; - /** Autogenerated input type of CreateDeploymentStatus */ export type CreateDeploymentStatusInput = { /** Adds a new inactive status to all non-transient, non-production environment deployments with the same repository and environment name as the created status's deployment. */ @@ -4048,15 +1222,6 @@ export type CreateDeploymentStatusInput = { state: DeploymentStatusState; }; -/** Autogenerated return type of CreateDeploymentStatus. */ -export type CreateDeploymentStatusPayload = { - __typename?: 'CreateDeploymentStatusPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new deployment status. */ - deploymentStatus?: Maybe; -}; - /** Autogenerated input type of CreateDiscussion */ export type CreateDiscussionInput = { /** The body of the discussion. */ @@ -4071,15 +1236,6 @@ export type CreateDiscussionInput = { title: Scalars['String']['input']; }; -/** Autogenerated return type of CreateDiscussion. */ -export type CreateDiscussionPayload = { - __typename?: 'CreateDiscussionPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The discussion that was just created. */ - discussion?: Maybe; -}; - /** Autogenerated input type of CreateEnterpriseOrganization */ export type CreateEnterpriseOrganizationInput = { /** The logins for the administrators of the new organization. */ @@ -4096,17 +1252,6 @@ export type CreateEnterpriseOrganizationInput = { profileName: Scalars['String']['input']; }; -/** Autogenerated return type of CreateEnterpriseOrganization. */ -export type CreateEnterpriseOrganizationPayload = { - __typename?: 'CreateEnterpriseOrganizationPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The enterprise that owns the created organization. */ - enterprise?: Maybe; - /** The organization that was created. */ - organization?: Maybe; -}; - /** Autogenerated input type of CreateEnvironment */ export type CreateEnvironmentInput = { /** A unique identifier for the client performing the mutation. */ @@ -4117,15 +1262,6 @@ export type CreateEnvironmentInput = { repositoryId: Scalars['ID']['input']; }; -/** Autogenerated return type of CreateEnvironment. */ -export type CreateEnvironmentPayload = { - __typename?: 'CreateEnvironmentPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new or existing environment. */ - environment?: Maybe; -}; - /** Autogenerated input type of CreateIpAllowListEntry */ export type CreateIpAllowListEntryInput = { /** An IP address or range of addresses in CIDR notation. */ @@ -4140,17 +1276,10 @@ export type CreateIpAllowListEntryInput = { ownerId: Scalars['ID']['input']; }; -/** Autogenerated return type of CreateIpAllowListEntry. */ -export type CreateIpAllowListEntryPayload = { - __typename?: 'CreateIpAllowListEntryPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The IP allow list entry that was created. */ - ipAllowListEntry?: Maybe; -}; - /** Autogenerated input type of CreateIssue */ export type CreateIssueInput = { + /** Configuration for assigning Copilot to this issue. */ + agentAssignment?: InputMaybe; /** The Node ID of assignees for this issue. */ assigneeIds?: InputMaybe>; /** The body for the issue description. */ @@ -4177,17 +1306,8 @@ export type CreateIssueInput = { title: Scalars['String']['input']; }; -/** Autogenerated return type of CreateIssue. */ -export type CreateIssuePayload = { - __typename?: 'CreateIssuePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new issue. */ - issue?: Maybe; -}; - -/** Autogenerated input type of CreateIssueType */ -export type CreateIssueTypeInput = { +/** Autogenerated input type of CreateIssueType */ +export type CreateIssueTypeInput = { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe; /** Color for the issue type */ @@ -4202,15 +1322,6 @@ export type CreateIssueTypeInput = { ownerId: Scalars['ID']['input']; }; -/** Autogenerated return type of CreateIssueType. */ -export type CreateIssueTypePayload = { - __typename?: 'CreateIssueTypePayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The newly created issue type */ - issueType?: Maybe; -}; - /** Autogenerated input type of CreateLabel */ export type CreateLabelInput = { /** A unique identifier for the client performing the mutation. */ @@ -4225,15 +1336,6 @@ export type CreateLabelInput = { repositoryId: Scalars['ID']['input']; }; -/** Autogenerated return type of CreateLabel. */ -export type CreateLabelPayload = { - __typename?: 'CreateLabelPayload'; - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: Maybe; - /** The new label. */ - label?: Maybe