[github] Do not request timeline event types that are not available in GHE 2.18
authorIvan Semenov <ivan.semenov@jetbrains.com>
Tue, 11 Aug 2020 13:00:48 +0000 (16:00 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Wed, 12 Aug 2020 12:16:38 +0000 (12:16 +0000)
Fixes IDEA-246045

GitOrigin-RevId: 43241a4b18c6cc59a44025691c6b9e5efbe043bd

plugins/github/resources/graphql/query/pullRequestTimeline.graphql

index 3e4034c5e4d1f9e0005b7529922badf25a622461..29ee7a83024034964c166fd21ebcaa86481b10ae 100644 (file)
@@ -218,25 +218,25 @@ fragment crossReferencedEvent on CrossReferencedEvent {
     }
 }
 
-fragment connectedEvent on ConnectedEvent {
-    actor {
-        ...actorInfo
-    }
-    createdAt
-    subject {
-        ...referenceSubject
-    }
-}
-
-fragment disconnectedEvent on DisconnectedEvent {
-    actor {
-        ...actorInfo
-    }
-    createdAt
-    subject {
-        ...referenceSubject
-    }
-}
+#fragment connectedEvent on ConnectedEvent {
+#    actor {
+#        ...actorInfo
+#    }
+#    createdAt
+#    subject {
+#        ...referenceSubject
+#    }
+#}
+#
+#fragment disconnectedEvent on DisconnectedEvent {
+#    actor {
+#        ...actorInfo
+#    }
+#    createdAt
+#    subject {
+#        ...referenceSubject
+#    }
+#}
 
 query($repoOwner: String!, $repoName: String!, $number: Int!, $pageSize: Int = 100, $cursor: String, $since: DateTime) {
     repository(owner: $repoOwner, name: $repoName) {
@@ -279,8 +279,8 @@ query($repoOwner: String!, $repoName: String!, $number: Int!, $pageSize: Int = 1
                     ...headRefRestoredEvent
 
                     ...crossReferencedEvent
-                    ...connectedEvent
-                    ...disconnectedEvent
+                    #...connectedEvent
+                    #...disconnectedEvent
                 }
             }
         }