From 459f52431f17861a890ad05f04c5a4c4feee8de9 Mon Sep 17 00:00:00 2001 From: Octokit Bot <33075676+octokitbot@users.noreply.github.com> Date: Wed, 10 Jan 2018 00:56:06 -0800 Subject: [PATCH 1/2] updated schema.graphql --- schema.graphql | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/schema.graphql b/schema.graphql index 96c9e4423..cf8a9153f 100644 --- a/schema.graphql +++ b/schema.graphql @@ -408,14 +408,20 @@ type ClosedEvent implements Node { # Object that was closed. closable: Closable! + # Object which triggered the creation of this event. + closer: Closer + # Identifies the commit associated with the 'closed' event. - commit: Commit + commit: Commit @deprecated(reason: "Use ClosedEvent.closer instead.") # Identifies the date and time when the object was created. createdAt: DateTime! id: ID! } +# The object which triggered a `ClosedEvent`. +union Closer = Commit | PullRequest + # The Code of Conduct for a repository type CodeOfConduct { # The body of the CoC From 757006abc4add0df72b1a5e7b778829639b2c746 Mon Sep 17 00:00:00 2001 From: Octokit Bot <33075676+octokitbot@users.noreply.github.com> Date: Wed, 10 Jan 2018 00:56:08 -0800 Subject: [PATCH 2/2] updated schema.json --- schema.json | 57 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 45 insertions(+), 12 deletions(-) diff --git a/schema.json b/schema.json index 95f53a57f..03d718882 100644 --- a/schema.json +++ b/schema.json @@ -22933,6 +22933,16 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "SCALAR", + "name": "Date", + "description": "An ISO-8601 encoded date string.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "SCALAR", "name": "X509Certificate", @@ -25508,6 +25518,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "closer", + "description": "Object which triggered the creation of this event.", + "args": [], + "type": { + "kind": "UNION", + "name": "Closer", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "commit", "description": "Identifies the commit associated with the 'closed' event.", @@ -25517,8 +25539,8 @@ "name": "Commit", "ofType": null }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "Use ClosedEvent.closer instead." }, { "name": "createdAt", @@ -25564,6 +25586,27 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "UNION", + "name": "Closer", + "description": "The object which triggered a `ClosedEvent`.", + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": null, + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "Commit", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "PullRequest", + "ofType": null + } + ] + }, { "kind": "OBJECT", "name": "ReopenedEvent", @@ -34014,16 +34057,6 @@ ], "possibleTypes": null }, - { - "kind": "SCALAR", - "name": "Date", - "description": "An ISO-8601 encoded date string.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "MarketplaceListingConnection",