From 4d6b0214b3fd728111cfff5354898a23900ff8ac Mon Sep 17 00:00:00 2001 From: Octomerger Bot <63058869+Octomerger@users.noreply.github.com> Date: Fri, 3 Feb 2023 08:39:19 -0800 Subject: [PATCH] GraphQL schema update (#34419) Co-authored-by: rachmari --- data/graphql/ghae/schema.docs-ghae.graphql | 20 +++++++++++---- data/graphql/ghec/schema.docs.graphql | 20 +++++++++++---- data/graphql/schema.docs.graphql | 20 +++++++++++---- lib/graphql/static/changelog.json | 15 +++++++++++ lib/graphql/static/schema-dotcom.json | 29 +++++++++++++++++++--- lib/graphql/static/schema-ghae.json | 29 +++++++++++++++++++--- lib/graphql/static/schema-ghec.json | 29 +++++++++++++++++++--- 7 files changed, 135 insertions(+), 27 deletions(-) diff --git a/data/graphql/ghae/schema.docs-ghae.graphql b/data/graphql/ghae/schema.docs-ghae.graphql index f3636351dc9c..7c634972f8fc 100644 --- a/data/graphql/ghae/schema.docs-ghae.graphql +++ b/data/graphql/ghae/schema.docs-ghae.graphql @@ -3403,7 +3403,7 @@ An object that can be closed """ interface Closable { """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! @@ -9054,7 +9054,7 @@ type DisconnectedEvent implements Node { """ A discussion in a repository. """ -type Discussion implements Comment & Deletable & Labelable & Lockable & Node & Reactable & RepositoryNode & Subscribable & Updatable & Votable { +type Discussion implements Closable & Comment & Deletable & Labelable & Lockable & Node & Reactable & RepositoryNode & Subscribable & Updatable & Votable { """ Reason that the conversation was locked. """ @@ -9105,6 +9105,16 @@ type Discussion implements Comment & Deletable & Labelable & Lockable & Node & R """ category: DiscussionCategory! + """ + Indicates if the object is closed (definition of closed may depend on type) + """ + closed: Boolean! + + """ + Identifies the date and time when the object was closed. + """ + closedAt: DateTime + """ The replies to the discussion. """ @@ -14360,7 +14370,7 @@ type Issue implements Assignable & Closable & Comment & Labelable & Lockable & N bodyUrl: URI! """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! @@ -17331,7 +17341,7 @@ Represents a Milestone object on a given repository. """ type Milestone implements Closable & Node & UniformResourceLocatable { """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! @@ -25131,7 +25141,7 @@ type Project implements Closable & Node & Updatable { bodyHTML: HTML! """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! diff --git a/data/graphql/ghec/schema.docs.graphql b/data/graphql/ghec/schema.docs.graphql index 8727c69739a6..53d041545308 100644 --- a/data/graphql/ghec/schema.docs.graphql +++ b/data/graphql/ghec/schema.docs.graphql @@ -3795,7 +3795,7 @@ An object that can be closed """ interface Closable { """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! @@ -9914,7 +9914,7 @@ type DisconnectedEvent implements Node { """ A discussion in a repository. """ -type Discussion implements Comment & Deletable & Labelable & Lockable & Node & Reactable & RepositoryNode & Subscribable & Updatable & Votable { +type Discussion implements Closable & Comment & Deletable & Labelable & Lockable & Node & Reactable & RepositoryNode & Subscribable & Updatable & Votable { """ Reason that the conversation was locked. """ @@ -9965,6 +9965,16 @@ type Discussion implements Comment & Deletable & Labelable & Lockable & Node & R """ category: DiscussionCategory! + """ + Indicates if the object is closed (definition of closed may depend on type) + """ + closed: Boolean! + + """ + Identifies the date and time when the object was closed. + """ + closedAt: DateTime + """ The replies to the discussion. """ @@ -15835,7 +15845,7 @@ type Issue implements Assignable & Closable & Comment & Labelable & Lockable & N bodyUrl: URI! """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! @@ -19395,7 +19405,7 @@ Represents a Milestone object on a given repository. """ type Milestone implements Closable & Node & UniformResourceLocatable { """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! @@ -28792,7 +28802,7 @@ type Project implements Closable & Node & Updatable { bodyHTML: HTML! """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! diff --git a/data/graphql/schema.docs.graphql b/data/graphql/schema.docs.graphql index 8727c69739a6..53d041545308 100644 --- a/data/graphql/schema.docs.graphql +++ b/data/graphql/schema.docs.graphql @@ -3795,7 +3795,7 @@ An object that can be closed """ interface Closable { """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! @@ -9914,7 +9914,7 @@ type DisconnectedEvent implements Node { """ A discussion in a repository. """ -type Discussion implements Comment & Deletable & Labelable & Lockable & Node & Reactable & RepositoryNode & Subscribable & Updatable & Votable { +type Discussion implements Closable & Comment & Deletable & Labelable & Lockable & Node & Reactable & RepositoryNode & Subscribable & Updatable & Votable { """ Reason that the conversation was locked. """ @@ -9965,6 +9965,16 @@ type Discussion implements Comment & Deletable & Labelable & Lockable & Node & R """ category: DiscussionCategory! + """ + Indicates if the object is closed (definition of closed may depend on type) + """ + closed: Boolean! + + """ + Identifies the date and time when the object was closed. + """ + closedAt: DateTime + """ The replies to the discussion. """ @@ -15835,7 +15845,7 @@ type Issue implements Assignable & Closable & Comment & Labelable & Lockable & N bodyUrl: URI! """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! @@ -19395,7 +19405,7 @@ Represents a Milestone object on a given repository. """ type Milestone implements Closable & Node & UniformResourceLocatable { """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! @@ -28792,7 +28802,7 @@ type Project implements Closable & Node & Updatable { bodyHTML: HTML! """ - `true` if the object is closed (definition of closed may depend on type) + Indicates if the object is closed (definition of closed may depend on type) """ closed: Boolean! diff --git a/lib/graphql/static/changelog.json b/lib/graphql/static/changelog.json index 4f14c2125efd..b86a81631e98 100644 --- a/lib/graphql/static/changelog.json +++ b/lib/graphql/static/changelog.json @@ -1,4 +1,19 @@ [ + { + "schemaChanges": [ + { + "title": "The GraphQL schema includes these changes:", + "changes": [ + "

Discussion object implements Closable interface

", + "

Field closed was added to object type Discussion

", + "

Field closedAt was added to object type Discussion

" + ] + } + ], + "previewChanges": [], + "upcomingChanges": [], + "date": "2023-02-03" + }, { "schemaChanges": [ { diff --git a/lib/graphql/static/schema-dotcom.json b/lib/graphql/static/schema-dotcom.json index f2039df939ed..0b2bf9e81ed9 100644 --- a/lib/graphql/static/schema-dotcom.json +++ b/lib/graphql/static/schema-dotcom.json @@ -17528,6 +17528,11 @@ "href": "/graphql/reference/objects#discussion", "description": "

A discussion in a repository.

", "implements": [ + { + "name": "Closable", + "id": "closable", + "href": "/graphql/reference/interfaces#closable" + }, { "name": "Comment", "id": "comment", @@ -17660,6 +17665,22 @@ "kind": "objects", "href": "/graphql/reference/objects#discussioncategory" }, + { + "name": "closed", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", + "type": "Boolean!", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + }, + { + "name": "closedAt", + "description": "

Identifies the date and time when the object was closed.

", + "type": "DateTime", + "id": "datetime", + "kind": "scalars", + "href": "/graphql/reference/scalars#datetime" + }, { "name": "comments", "description": "

The replies to the discussion.

", @@ -25671,7 +25692,7 @@ }, { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars", @@ -29994,7 +30015,7 @@ "fields": [ { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars", @@ -40772,7 +40793,7 @@ }, { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars", @@ -71051,7 +71072,7 @@ "fields": [ { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars", diff --git a/lib/graphql/static/schema-ghae.json b/lib/graphql/static/schema-ghae.json index 89f1786398a1..c674163c80d0 100644 --- a/lib/graphql/static/schema-ghae.json +++ b/lib/graphql/static/schema-ghae.json @@ -15623,6 +15623,11 @@ "href": "/graphql/reference/objects#discussion", "description": "

A discussion in a repository.

", "implements": [ + { + "name": "Closable", + "id": "closable", + "href": "/graphql/reference/interfaces#closable" + }, { "name": "Comment", "id": "comment", @@ -15755,6 +15760,22 @@ "kind": "objects", "href": "/graphql/reference/objects#discussioncategory" }, + { + "name": "closed", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", + "type": "Boolean!", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + }, + { + "name": "closedAt", + "description": "

Identifies the date and time when the object was closed.

", + "type": "DateTime", + "id": "datetime", + "kind": "scalars", + "href": "/graphql/reference/scalars#datetime" + }, { "name": "comments", "description": "

The replies to the discussion.

", @@ -22951,7 +22972,7 @@ }, { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars", @@ -26388,7 +26409,7 @@ "fields": [ { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars", @@ -35449,7 +35470,7 @@ }, { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars", @@ -59856,7 +59877,7 @@ "fields": [ { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars", diff --git a/lib/graphql/static/schema-ghec.json b/lib/graphql/static/schema-ghec.json index f2039df939ed..0b2bf9e81ed9 100644 --- a/lib/graphql/static/schema-ghec.json +++ b/lib/graphql/static/schema-ghec.json @@ -17528,6 +17528,11 @@ "href": "/graphql/reference/objects#discussion", "description": "

A discussion in a repository.

", "implements": [ + { + "name": "Closable", + "id": "closable", + "href": "/graphql/reference/interfaces#closable" + }, { "name": "Comment", "id": "comment", @@ -17660,6 +17665,22 @@ "kind": "objects", "href": "/graphql/reference/objects#discussioncategory" }, + { + "name": "closed", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", + "type": "Boolean!", + "id": "boolean", + "kind": "scalars", + "href": "/graphql/reference/scalars#boolean" + }, + { + "name": "closedAt", + "description": "

Identifies the date and time when the object was closed.

", + "type": "DateTime", + "id": "datetime", + "kind": "scalars", + "href": "/graphql/reference/scalars#datetime" + }, { "name": "comments", "description": "

The replies to the discussion.

", @@ -25671,7 +25692,7 @@ }, { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars", @@ -29994,7 +30015,7 @@ "fields": [ { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars", @@ -40772,7 +40793,7 @@ }, { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars", @@ -71051,7 +71072,7 @@ "fields": [ { "name": "closed", - "description": "

true if the object is closed (definition of closed may depend on type).

", + "description": "

Indicates if the object is closed (definition of closed may depend on type).

", "type": "Boolean!", "id": "boolean", "kind": "scalars",