From 5b662f503a65b1e0bbbf33cbc62682ff3577ec44 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Thu, 16 May 2024 14:19:14 -0500 Subject: [PATCH] feat: `Environment#{isPinned,latestCompletedDeployment,pinnedPosition}`, mutations: `pinEnvironment()`, `reorderEnvironment()` (#946) --- schema.d.ts | 144 ++++++++- schema.graphql | 270 ++++++++++++++++ schema.json | 840 +++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 1162 insertions(+), 92 deletions(-) diff --git a/schema.d.ts b/schema.d.ts index 81e9fadaf..c8303dbd3 100644 --- a/schema.d.ts +++ b/schema.d.ts @@ -205,7 +205,7 @@ export type AddCommentPayload = { /** The edge from the subject's comment connection. */ commentEdge?: Maybe; /** The subject */ - subject?: Maybe; + subject?: Maybe; /** The edge from the subject's timeline connection. */ timelineEdge?: Maybe; }; @@ -5537,6 +5537,8 @@ export type DeploymentProtectionRuleEdge = { /** The possible protection rule types. */ export type DeploymentProtectionRuleType = + /** Branch policy */ + | 'BRANCH_POLICY' /** Required reviewers */ | 'REQUIRED_REVIEWERS' /** Wait timer */ @@ -7861,8 +7863,14 @@ export type Environment = Node & { databaseId?: Maybe; /** The Node ID of the Environment object */ id: Scalars['ID']['output']; + /** Indicates whether or not this environment is currently pinned to the repository */ + isPinned?: Maybe; + /** The latest completed deployment with status success, failure, or error if it exists */ + latestCompletedDeployment?: Maybe; /** The name of the environment */ name: Scalars['String']['output']; + /** The position of the environment if it is pinned, null if it is not pinned */ + pinnedPosition?: Maybe; /** The protection rules defined for this environment */ protectionRules: DeploymentProtectionRuleConnection; }; @@ -7903,6 +7911,15 @@ export type EnvironmentOrderField = /** Order environments by name. */ | 'NAME'; +/** Properties by which environments connections can be ordered */ +export type EnvironmentPinnedFilterField = + /** All environments will be returned. */ + | 'ALL' + /** Environments exclude pinned will be returned */ + | 'NONE' + /** Only pinned environment will be returned */ + | 'ONLY'; + /** Ordering options for environments */ export type Environments = { /** The direction in which to order environments by the specified field. */ @@ -11436,6 +11453,8 @@ export type Mutation = { moveProjectCard?: Maybe; /** Moves a project column to another place. */ moveProjectColumn?: Maybe; + /** Pin an environment to a repository */ + pinEnvironment?: Maybe; /** Pin an issue to a repository */ pinIssue?: Maybe; /** Publish an existing sponsorship tier that is currently still a draft to a GitHub Sponsors profile. */ @@ -11477,6 +11496,8 @@ export type Mutation = { reopenIssue?: Maybe; /** Reopen a pull request. */ reopenPullRequest?: Maybe; + /** Reorder a pinned repository environment */ + reorderEnvironment?: Maybe; /** Set review requests on a pull request. */ requestReviews?: Maybe; /** Rerequests an existing check suite. */ @@ -12423,6 +12444,12 @@ export type MutationMoveProjectColumnArgs = { }; +/** The root query for implementing GraphQL mutations. */ +export type MutationPinEnvironmentArgs = { + input: PinEnvironmentInput; +}; + + /** The root query for implementing GraphQL mutations. */ export type MutationPinIssueArgs = { input: PinIssueInput; @@ -12537,6 +12564,12 @@ export type MutationReopenPullRequestArgs = { }; +/** The root query for implementing GraphQL mutations. */ +export type MutationReorderEnvironmentArgs = { + input: ReorderEnvironmentInput; +}; + + /** The root query for implementing GraphQL mutations. */ export type MutationRequestReviewsArgs = { input: RequestReviewsInput; @@ -15935,6 +15968,27 @@ export type PermissionSource = { source: PermissionGranter; }; +/** Autogenerated input type of PinEnvironment */ +export type PinEnvironmentInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** The ID of the environment to modify */ + environmentId: Scalars['ID']['input']; + /** The desired state of the environment. If true, environment will be pinned. If false, it will be unpinned. */ + pinned: Scalars['Boolean']['input']; +}; + +/** Autogenerated return type of PinEnvironment */ +export type PinEnvironmentPayload = { + __typename?: 'PinEnvironmentPayload'; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The environment that was pinned */ + environment?: Maybe; + /** The pinned environment if we pinned */ + pinnedEnvironment?: Maybe; +}; + /** Autogenerated input type of PinIssue */ export type PinIssueInput = { /** A unique identifier for the client performing the mutation. */ @@ -16071,6 +16125,58 @@ export type PinnedDiscussionPattern = /** A lightning bolt pattern */ | 'ZAP'; +/** Represents a pinned environment on a given repository */ +export type PinnedEnvironment = Node & { + __typename?: 'PinnedEnvironment'; + /** Identifies the date and time when the pinned environment was created */ + createdAt: Scalars['DateTime']['output']; + /** Identifies the primary key from the database. */ + databaseId?: Maybe; + /** Identifies the environment associated. */ + environment: Environment; + /** The Node ID of the PinnedEnvironment object */ + id: Scalars['ID']['output']; + /** Identifies the position of the pinned environment. */ + position: Scalars['Int']['output']; + /** The repository that this environment was pinned to. */ + repository: Repository; +}; + +/** The connection type for PinnedEnvironment. */ +export type PinnedEnvironmentConnection = { + __typename?: 'PinnedEnvironmentConnection'; + /** 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 PinnedEnvironmentEdge = { + __typename?: 'PinnedEnvironmentEdge'; + /** A cursor for use in pagination. */ + cursor: Scalars['String']['output']; + /** The item at the end of the edge. */ + node?: Maybe; +}; + +/** Ordering options for pinned environments */ +export type PinnedEnvironmentOrder = { + /** The direction in which to order pinned environments by the specified field. */ + direction: OrderDirection; + /** The field to order pinned environments by. */ + field: PinnedEnvironmentOrderField; +}; + +/** Properties by which pinned environments connections can be ordered */ +export type PinnedEnvironmentOrderField = + /** Order pinned environments by position */ + | 'POSITION'; + /** Represents a 'pinned' event on a given issue or pull request. */ export type PinnedEvent = Node & { __typename?: 'PinnedEvent'; @@ -19388,9 +19494,9 @@ export type Query = { /** Return information about the GitHub instance */ meta: GitHubMetadata; /** Fetches an object given its ID. */ - node?: Maybe; + node?: Maybe; /** Lookup nodes by a list of IDs. */ - nodes: Array>; + nodes: Array>; /** Lookup a organization by login. */ organization?: Maybe; /** The client's rate limit information. */ @@ -20588,6 +20694,25 @@ export type ReopenedEvent = Node & { stateReason?: Maybe; }; +/** Autogenerated input type of ReorderEnvironment */ +export type ReorderEnvironmentInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + /** The ID of the environment to modify */ + environmentId: Scalars['ID']['input']; + /** The desired position of the environment */ + position: Scalars['Int']['input']; +}; + +/** Autogenerated return type of ReorderEnvironment */ +export type ReorderEnvironmentPayload = { + __typename?: 'ReorderEnvironmentPayload'; + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: Maybe; + /** The environment that was reordered */ + environment?: Maybe; +}; + /** Audit log entry for a repo.access event. */ export type RepoAccessAuditEntry = AuditEntry & Node & OrganizationAuditEntryData & RepositoryAuditEntryData & { __typename?: 'RepoAccessAuditEntry'; @@ -21787,6 +21912,8 @@ export type Repository = Node & PackageOwner & ProjectOwner & ProjectV2Recent & parent?: Maybe; /** A list of discussions that have been pinned in this repository. */ pinnedDiscussions: PinnedDiscussionConnection; + /** A list of pinned environments for this repository. */ + pinnedEnvironments?: Maybe; /** A list of pinned issues for this repository. */ pinnedIssues?: Maybe; /** Returns information about the availability of certain features and limits based on the repository's billing plan. */ @@ -22029,6 +22156,7 @@ export type RepositoryEnvironmentsArgs = { last?: InputMaybe; names?: InputMaybe>; orderBy?: InputMaybe; + pinnedEnvironmentFilter?: InputMaybe; }; @@ -22163,6 +22291,16 @@ export type RepositoryPinnedDiscussionsArgs = { }; +/** A repository contains the content for a project. */ +export type RepositoryPinnedEnvironmentsArgs = { + after?: InputMaybe; + before?: InputMaybe; + first?: InputMaybe; + last?: InputMaybe; + orderBy?: InputMaybe; +}; + + /** A repository contains the content for a project. */ export type RepositoryPinnedIssuesArgs = { after?: InputMaybe; diff --git a/schema.graphql b/schema.graphql index ea935567b..eececa9cb 100644 --- a/schema.graphql +++ b/schema.graphql @@ -10491,6 +10491,11 @@ type DeploymentProtectionRuleEdge { The possible protection rule types. """ enum DeploymentProtectionRuleType { + """ + Branch policy + """ + BRANCH_POLICY + """ Required reviewers """ @@ -15393,11 +15398,26 @@ type Environment implements Node { """ id: ID! + """ + Indicates whether or not this environment is currently pinned to the repository + """ + isPinned: Boolean + + """ + The latest completed deployment with status success, failure, or error if it exists + """ + latestCompletedDeployment: Deployment + """ The name of the environment """ name: String! + """ + The position of the environment if it is pinned, null if it is not pinned + """ + pinnedPosition: Int + """ The protection rules defined for this environment """ @@ -15474,6 +15494,26 @@ enum EnvironmentOrderField { NAME } +""" +Properties by which environments connections can be ordered +""" +enum EnvironmentPinnedFilterField { + """ + All environments will be returned. + """ + ALL + + """ + Environments exclude pinned will be returned + """ + NONE + + """ + Only pinned environment will be returned + """ + ONLY +} + """ Ordering options for environments """ @@ -23307,6 +23347,16 @@ type Mutation { input: MoveProjectColumnInput! ): MoveProjectColumnPayload + """ + Pin an environment to a repository + """ + pinEnvironment( + """ + Parameters for PinEnvironment + """ + input: PinEnvironmentInput! + ): PinEnvironmentPayload + """ Pin an issue to a repository """ @@ -23498,6 +23548,16 @@ type Mutation { input: ReopenPullRequestInput! ): ReopenPullRequestPayload + """ + Reorder a pinned repository environment + """ + reorderEnvironment( + """ + Parameters for ReorderEnvironment + """ + input: ReorderEnvironmentInput! + ): ReorderEnvironmentPayload + """ Set review requests on a pull request. """ @@ -30862,6 +30922,46 @@ type PermissionSource { source: PermissionGranter! } +""" +Autogenerated input type of PinEnvironment +""" +input PinEnvironmentInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The ID of the environment to modify + """ + environmentId: ID! + + """ + The desired state of the environment. If true, environment will be pinned. If false, it will be unpinned. + """ + pinned: Boolean! +} + +""" +Autogenerated return type of PinEnvironment +""" +type PinEnvironmentPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The environment that was pinned + """ + environment: Environment + + """ + The pinned environment if we pinned + """ + pinnedEnvironment: PinnedEnvironment +} + """ Autogenerated input type of PinIssue """ @@ -31142,6 +31242,106 @@ enum PinnedDiscussionPattern { ZAP } +""" +Represents a pinned environment on a given repository +""" +type PinnedEnvironment implements Node { + """ + Identifies the date and time when the pinned environment was created + """ + createdAt: DateTime! + + """ + Identifies the primary key from the database. + """ + databaseId: Int + + """ + Identifies the environment associated. + """ + environment: Environment! + + """ + The Node ID of the PinnedEnvironment object + """ + id: ID! + + """ + Identifies the position of the pinned environment. + """ + position: Int! + + """ + The repository that this environment was pinned to. + """ + repository: Repository! +} + +""" +The connection type for PinnedEnvironment. +""" +type PinnedEnvironmentConnection { + """ + A list of edges. + """ + edges: [PinnedEnvironmentEdge] + + """ + A list of nodes. + """ + nodes: [PinnedEnvironment] + + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} + +""" +An edge in a connection. +""" +type PinnedEnvironmentEdge { + """ + A cursor for use in pagination. + """ + cursor: String! + + """ + The item at the end of the edge. + """ + node: PinnedEnvironment +} + +""" +Ordering options for pinned environments +""" +input PinnedEnvironmentOrder { + """ + The direction in which to order pinned environments by the specified field. + """ + direction: OrderDirection! + + """ + The field to order pinned environments by. + """ + field: PinnedEnvironmentOrderField! +} + +""" +Properties by which pinned environments connections can be ordered +""" +enum PinnedEnvironmentOrderField { + """ + Order pinned environments by position + """ + POSITION +} + """ Represents a 'pinned' event on a given issue or pull request. """ @@ -40596,6 +40796,41 @@ type ReopenedEvent implements Node { stateReason: IssueStateReason } +""" +Autogenerated input type of ReorderEnvironment +""" +input ReorderEnvironmentInput { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The ID of the environment to modify + """ + environmentId: ID! + + """ + The desired position of the environment + """ + position: Int! +} + +""" +Autogenerated return type of ReorderEnvironment +""" +type ReorderEnvironmentPayload { + """ + A unique identifier for the client performing the mutation. + """ + clientMutationId: String + + """ + The environment that was reordered + """ + environment: Environment +} + """ Audit log entry for a repo.access event. """ @@ -43464,6 +43699,11 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent Ordering options for the environments """ orderBy: Environments = {field: NAME, direction: ASC} + + """ + Filter to control pinned environments return + """ + pinnedEnvironmentFilter: EnvironmentPinnedFilterField = ALL ): EnvironmentConnection! """ @@ -44033,6 +44273,36 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent last: Int ): PinnedDiscussionConnection! + """ + A list of pinned environments for this repository. + """ + pinnedEnvironments( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: String + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: String + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for the environments + """ + orderBy: PinnedEnvironmentOrder = {field: POSITION, direction: ASC} + ): PinnedEnvironmentConnection + """ A list of pinned issues for this repository. """ diff --git a/schema.json b/schema.json index 81634e64f..137416767 100644 --- a/schema.json +++ b/schema.json @@ -26707,6 +26707,12 @@ "description": "Wait timer", "isDeprecated": false, "deprecationReason": null + }, + { + "name": "BRANCH_POLICY", + "description": "Branch policy", + "isDeprecated": false, + "deprecationReason": null } ], "possibleTypes": null @@ -39015,6 +39021,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "isPinned", + "description": "Indicates whether or not this environment is currently pinned to the repository", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "latestCompletedDeployment", + "description": "The latest completed deployment with status success, failure, or error if it exists", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Deployment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "name", "description": "The name of the environment", @@ -39031,6 +39061,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "pinnedPosition", + "description": "The position of the environment if it is pinned, null if it is not pinned", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "protectionRules", "description": "The protection rules defined for this environment", @@ -39231,6 +39273,35 @@ ], "possibleTypes": null }, + { + "kind": "ENUM", + "name": "EnvironmentPinnedFilterField", + "description": "Properties by which environments connections can be ordered", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "ALL", + "description": "All environments will be returned.", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "ONLY", + "description": "Only pinned environment will be returned", + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "NONE", + "description": "Environments exclude pinned will be returned", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "Environments", @@ -59469,6 +59540,33 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "pinEnvironment", + "description": "Pin an environment to a repository", + "args": [ + { + "name": "input", + "description": "Parameters for PinEnvironment", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "PinEnvironmentInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "PinEnvironmentPayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "pinIssue", "description": "Pin an issue to a repository", @@ -59982,6 +60080,33 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "reorderEnvironment", + "description": "Reorder a pinned repository environment", + "args": [ + { + "name": "input", + "description": "Parameters for ReorderEnvironment", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ReorderEnvironmentInput", + "ofType": null + } + }, + "defaultValue": null + } + ], + "type": { + "kind": "OBJECT", + "name": "ReorderEnvironmentPayload", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "requestReviews", "description": "Set review requests on a pull request.", @@ -63138,6 +63263,11 @@ "name": "PinnedDiscussion", "ofType": null }, + { + "kind": "OBJECT", + "name": "PinnedEnvironment", + "ofType": null + }, { "kind": "OBJECT", "name": "PinnedEvent", @@ -80302,6 +80432,102 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "PinEnvironmentInput", + "description": "Autogenerated input type of PinEnvironment", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "environmentId", + "description": "The ID of the environment to modify", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "pinned", + "description": "The desired state of the environment. If true, environment will be pinned. If false, it will be unpinned.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PinEnvironmentPayload", + "description": "Autogenerated return type of PinEnvironment", + "fields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "environment", + "description": "The environment that was pinned", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Environment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pinnedEnvironment", + "description": "The pinned environment if we pinned", + "args": [], + "type": { + "kind": "OBJECT", + "name": "PinnedEnvironment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "PinIssueInput", @@ -80952,24 +81178,12 @@ }, { "kind": "OBJECT", - "name": "PinnedEvent", - "description": "Represents a 'pinned' event on a given issue or pull request.", + "name": "PinnedEnvironment", + "description": "Represents a pinned environment on a given repository", "fields": [ - { - "name": "actor", - "description": "Identifies the actor who performed the event.", - "args": [], - "type": { - "kind": "INTERFACE", - "name": "Actor", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "createdAt", - "description": "Identifies the date and time when the object was created.", + "description": "Identifies the date and time when the pinned environment was created", "args": [], "type": { "kind": "NON_NULL", @@ -80983,55 +81197,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "id", - "description": "The Node ID of the PinnedEvent object", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "issue", - "description": "Identifies the issue associated with the event.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Issue", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "Node", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PinnedIssue", - "description": "A Pinned Issue is a issue pinned to a repository's index page.", - "fields": [ { "name": "databaseId", "description": "Identifies the primary key from the database.", @@ -81045,27 +81210,15 @@ "deprecationReason": null }, { - "name": "fullDatabaseId", - "description": "Identifies the primary key from the database as a BigInt.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "BigInt", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": "The Node ID of the PinnedIssue object", + "name": "environment", + "description": "Identifies the environment associated.", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "SCALAR", - "name": "ID", + "kind": "OBJECT", + "name": "Environment", "ofType": null } }, @@ -81073,15 +81226,15 @@ "deprecationReason": null }, { - "name": "issue", - "description": "The issue that was pinned.", + "name": "id", + "description": "The Node ID of the PinnedEnvironment object", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Issue", + "kind": "SCALAR", + "name": "ID", "ofType": null } }, @@ -81089,15 +81242,15 @@ "deprecationReason": null }, { - "name": "pinnedBy", - "description": "The actor that pinned this issue.", + "name": "position", + "description": "Identifies the position of the pinned environment.", "args": [], "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "INTERFACE", - "name": "Actor", + "kind": "SCALAR", + "name": "Int", "ofType": null } }, @@ -81106,7 +81259,359 @@ }, { "name": "repository", - "description": "The repository that this issue was pinned to.", + "description": "The repository that this environment was pinned to.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Repository", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Node", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PinnedEnvironmentConnection", + "description": "The connection type for PinnedEnvironment.", + "fields": [ + { + "name": "edges", + "description": "A list of edges.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PinnedEnvironmentEdge", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "nodes", + "description": "A list of nodes.", + "args": [], + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PinnedEnvironment", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pageInfo", + "description": "Information to aid in pagination.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "totalCount", + "description": "Identifies the total count of items in the connection.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PinnedEnvironmentEdge", + "description": "An edge in a connection.", + "fields": [ + { + "name": "cursor", + "description": "A cursor for use in pagination.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "node", + "description": "The item at the end of the edge.", + "args": [], + "type": { + "kind": "OBJECT", + "name": "PinnedEnvironment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "PinnedEnvironmentOrder", + "description": "Ordering options for pinned environments", + "fields": null, + "inputFields": [ + { + "name": "field", + "description": "The field to order pinned environments by.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "PinnedEnvironmentOrderField", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "direction", + "description": "The direction in which to order pinned environments by the specified field.", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "OrderDirection", + "ofType": null + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "PinnedEnvironmentOrderField", + "description": "Properties by which pinned environments connections can be ordered", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "POSITION", + "description": "Order pinned environments by position", + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PinnedEvent", + "description": "Represents a 'pinned' event on a given issue or pull request.", + "fields": [ + { + "name": "actor", + "description": "Identifies the actor who performed the event.", + "args": [], + "type": { + "kind": "INTERFACE", + "name": "Actor", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "createdAt", + "description": "Identifies the date and time when the object was created.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "DateTime", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "The Node ID of the PinnedEvent object", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issue", + "description": "Identifies the issue associated with the event.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Issue", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Node", + "ofType": null + } + ], + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "PinnedIssue", + "description": "A Pinned Issue is a issue pinned to a repository's index page.", + "fields": [ + { + "name": "databaseId", + "description": "Identifies the primary key from the database.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "fullDatabaseId", + "description": "Identifies the primary key from the database as a BigInt.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "BigInt", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": "The Node ID of the PinnedIssue object", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "issue", + "description": "The issue that was pinned.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Issue", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "pinnedBy", + "description": "The actor that pinned this issue.", + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INTERFACE", + "name": "Actor", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "repository", + "description": "The repository that this issue was pinned to.", "args": [], "type": { "kind": "NON_NULL", @@ -105896,6 +106401,90 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "ReorderEnvironmentInput", + "description": "Autogenerated input type of ReorderEnvironment", + "fields": null, + "inputFields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "environmentId", + "description": "The ID of the environment to modify", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null + }, + { + "name": "position", + "description": "The desired position of the environment", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + "defaultValue": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, + { + "kind": "OBJECT", + "name": "ReorderEnvironmentPayload", + "description": "Autogenerated return type of ReorderEnvironment", + "fields": [ + { + "name": "clientMutationId", + "description": "A unique identifier for the client performing the mutation.", + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "environment", + "description": "The environment that was reordered", + "args": [], + "type": { + "kind": "OBJECT", + "name": "Environment", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "OBJECT", "name": "RepoAccessAuditEntry", @@ -113184,6 +113773,16 @@ }, "defaultValue": "{field: NAME, direction: ASC}" }, + { + "name": "pinnedEnvironmentFilter", + "description": "Filter to control pinned environments return", + "type": { + "kind": "ENUM", + "name": "EnvironmentPinnedFilterField", + "ofType": null + }, + "defaultValue": "ALL" + }, { "name": "names", "description": "The names of the environments to be returned.", @@ -114651,6 +115250,69 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "pinnedEnvironments", + "description": "A list of pinned environments for this repository.", + "args": [ + { + "name": "after", + "description": "Returns the elements in the list that come after the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "before", + "description": "Returns the elements in the list that come before the specified cursor.", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "first", + "description": "Returns the first _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "last", + "description": "Returns the last _n_ elements from the list.", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + }, + "defaultValue": null + }, + { + "name": "orderBy", + "description": "Ordering options for the environments", + "type": { + "kind": "INPUT_OBJECT", + "name": "PinnedEnvironmentOrder", + "ofType": null + }, + "defaultValue": "{field: POSITION, direction: ASC}" + } + ], + "type": { + "kind": "OBJECT", + "name": "PinnedEnvironmentConnection", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "pinnedIssues", "description": "A list of pinned issues for this repository.",