{"action":"created","comment":{"url":"https://api.github.com/repos/prismagraphql/prisma/pulls/comments/198232690","pull_request_review_id":132126493,"id":198232690,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODIzMjY5MA==","diff_hunk":"@@ -0,0 +1,231 @@\n+package com.prisma.api.connector.postgresql.database\n+\n+import java.sql.{PreparedStatement, Statement}\n+\n+import com.prisma.api.connector.postgresql.database.JooqQueryBuilders.placeHolder\n+import com.prisma.api.connector.{CreateDataItemsImport, CreateRelationRowsImport, PushScalarListsImport}\n+import com.prisma.gc_values.{GCValue, IdGCValue, ListGCValue, NullGCValue}\n+import com.prisma.shared.models.ScalarField\n+import cool.graph.cuid.Cuid\n+import org.jooq.impl.DSL.max\n+\n+import scala.collection.immutable\n+import scala.concurrent.ExecutionContext\n+\n+trait ImportActions extends BuilderBase {\n+\n+  import com.prisma.api.connector.postgresql.database.JdbcExtensions._\n+  import com.prisma.api.connector.postgresql.database.PostgresSlickExtensions._\n+  import com.prisma.slick.NewJdbcExtensions._\n+  import slick.jdbc.PostgresProfile.api._\n+\n+  def createDataItemsImport(mutaction: CreateDataItemsImport): SimpleDBIO[Vector[String]] = {\n+\n+    SimpleDBIO[Vector[String]] { jdbcActionContext =>\n+      val model         = mutaction.model\n+      val argsWithIndex = mutaction.args.zipWithIndex\n+\n+      val nodeResult: Vector[String] = try {\n+        val fields = model.scalarNonListFields.map(modelColumn(model, _)).toVector\n+\n+        val query = sql\n+          .insertInto(modelTable(model))\n+          .columns(fields: _*)\n+          .values(placeHolders(fields))\n+\n+        val itemInsert: PreparedStatement = jdbcActionContext.connection.prepareStatement(query.getSQL)\n+        val currentTimeStamp              = currentTimeStampUTC\n+\n+        //Fixme have a helper for adding updatedAt / createdAt\n+        mutaction.args.foreach { arg =>\n+          val argsAsRoot = arg.raw.asRoot\n+          model.scalarNonListFields.zipWithIndex.foreach {\n+            case (field, index) =>\n+              argsAsRoot.map.get(field.name) match {\n+                case Some(NullGCValue) if field.name == \"createdAt\" || field.name == \"updatedAt\" => itemInsert.setTimestamp(index + 1, currentTimeStamp)\n+                case Some(gCValue)                                                               => itemInsert.setGcValue(index + 1, gCValue)\n+                case None if field.name == \"createdAt\" || field.name == \"updatedAt\"              => itemInsert.setTimestamp(index + 1, currentTimeStamp)\n+                case None                                                                        => itemInsert.setNull(index + 1, java.sql.Types.NULL)\n+              }\n+          }\n+          itemInsert.addBatch()\n+        }\n+\n+        itemInsert.executeBatch()\n+\n+        Vector.empty\n+      } catch {\n+        case e: java.sql.BatchUpdateException =>\n+          e.getUpdateCounts.zipWithIndex\n+            .filter(element => element._1 == Statement.EXECUTE_FAILED)\n+            .map { failed =>\n+              val failedId = argsWithIndex.find(_._2 == failed._2).get._1.raw.asRoot.idField.value\n+              s\"Failure inserting ${model.dbName} with Id: $failedId. Cause: ${removeConnectionInfoFromCause(e.getCause.toString)}\"\n+            }\n+            .toVector\n+        case e: Exception => Vector(e.getCause.toString)\n+      }\n+\n+      val relayResult: Vector[String] = try {\n+        val query = sql\n+          .insertInto(relayTable)\n+          .columns(relayIdColumn, relayStableIdentifierColumn)\n+          .values(placeHolder, placeHolder)\n+\n+        val relayInsert: PreparedStatement = jdbcActionContext.connection.prepareStatement(query.getSQL)\n+\n+        mutaction.args.foreach { arg =>\n+          relayInsert.setString(1, arg.raw.asRoot.idField.value)\n+          relayInsert.setString(2, model.stableIdentifier)\n+          relayInsert.addBatch()\n+        }\n+        relayInsert.executeBatch()\n+\n+        Vector.empty\n+      } catch {\n+        case e: java.sql.BatchUpdateException =>\n+          e.getUpdateCounts.zipWithIndex\n+            .filter(element => element._1 == Statement.EXECUTE_FAILED)\n+            .map { failed =>\n+              val failedId = argsWithIndex.find(_._2 == failed._2).get._1.raw.asRoot.idField.value\n+              s\"Failure inserting RelayRow with Id: $failedId. Cause: ${removeConnectionInfoFromCause(e.getCause.toString)}\"\n+            }\n+            .toVector\n+        case e: Exception => Vector(e.getMessage)\n+      }\n+\n+      val res = nodeResult ++ relayResult\n+      if (res.nonEmpty) throw new Exception(res.mkString(\"-@-\"))\n+      res\n+    }\n+  }\n+\n+  def removeConnectionInfoFromCause(cause: String): String = {\n+    val connectionSubStringStart = cause.indexOf(\": ERROR:\")\n+    cause.substring(connectionSubStringStart + 9)\n+  }\n+\n+  def createRelationRowsImport(mutaction: CreateRelationRowsImport): SimpleDBIO[Vector[String]] = {\n+    val argsWithIndex: Seq[((IdGCValue, IdGCValue), Int)] = mutaction.args.zipWithIndex\n+    val relation                                          = mutaction.relation\n+\n+    SimpleDBIO[Vector[String]] { x =>\n+      val res = try {\n+        val query = sql\n+          .insertInto(relationTable(relation))\n+          .columns(relationIdColumn(relation),\n+                   relationColumn(relation, relation.modelAField.relationSide),\n+                   relationColumn(relation, relation.modelBField.relationSide))\n+          .values(placeHolder, placeHolder, placeHolder)\n+\n+        val relationInsert: PreparedStatement = x.connection.prepareStatement(query.getSQL)\n+        mutaction.args.foreach { arg =>\n+          relationInsert.setString(1, Cuid.createCuid())\n+          relationInsert.setGcValue(2, arg._1)\n+          relationInsert.setGcValue(3, arg._2)\n+          relationInsert.addBatch()\n+        }\n+        relationInsert.executeBatch()\n+        Vector.empty\n+      } catch {\n+        case e: java.sql.BatchUpdateException =>\n+          val faileds = e.getUpdateCounts.zipWithIndex\n+\n+          faileds\n+            .filter(element => element._1 == Statement.EXECUTE_FAILED)\n+            .map { failed =>\n+              val failedA = argsWithIndex.find(_._2 == failed._2).get._1._1\n+              val failedB = argsWithIndex.find(_._2 == failed._2).get._1._2","path":"server/connectors/api-connector-postgresql/src/main/scala/com/prisma/api/connector/postgresql/database/ImportActions.scala","position":138,"original_position":138,"commit_id":"2bd35bc79ed4d351a2a035d7a54124731dd6862e","original_commit_id":"2bd35bc79ed4d351a2a035d7a54124731dd6862e","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Usage of get on optional type.](https://app.codacy.com/app/graphcool/prisma/pullRequest?prid=1792053)","created_at":"2018-06-26T17:29:21Z","updated_at":"2018-06-26T17:29:21Z","html_url":"https://github.com/prismagraphql/prisma/pull/2647#discussion_r198232690","pull_request_url":"https://api.github.com/repos/prismagraphql/prisma/pulls/2647","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/prismagraphql/prisma/pulls/comments/198232690"},"html":{"href":"https://github.com/prismagraphql/prisma/pull/2647#discussion_r198232690"},"pull_request":{"href":"https://api.github.com/repos/prismagraphql/prisma/pulls/2647"}}},"pull_request":{"url":"https://api.github.com/repos/prismagraphql/prisma/pulls/2647","id":195508855,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NTA4ODU1","html_url":"https://github.com/prismagraphql/prisma/pull/2647","diff_url":"https://github.com/prismagraphql/prisma/pull/2647.diff","patch_url":"https://github.com/prismagraphql/prisma/pull/2647.patch","issue_url":"https://api.github.com/repos/prismagraphql/prisma/issues/2647","number":2647,"state":"open","locked":false,"title":"[WIP] refactor mutaction hierarchy","user":{"login":"mavilein","id":2470881,"node_id":"MDQ6VXNlcjI0NzA4ODE=","avatar_url":"https://avatars3.githubusercontent.com/u/2470881?v=4","gravatar_id":"","url":"https://api.github.com/users/mavilein","html_url":"https://github.com/mavilein","followers_url":"https://api.github.com/users/mavilein/followers","following_url":"https://api.github.com/users/mavilein/following{/other_user}","gists_url":"https://api.github.com/users/mavilein/gists{/gist_id}","starred_url":"https://api.github.com/users/mavilein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mavilein/subscriptions","organizations_url":"https://api.github.com/users/mavilein/orgs","repos_url":"https://api.github.com/users/mavilein/repos","events_url":"https://api.github.com/users/mavilein/events{/privacy}","received_events_url":"https://api.github.com/users/mavilein/received_events","type":"User","site_admin":false},"body":null,"created_at":"2018-06-18T12:28:29Z","updated_at":"2018-06-26T17:29:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42d6754db2794735038976f7dc1ddcaba8cc5ba9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/prismagraphql/prisma/pulls/2647/commits","review_comments_url":"https://api.github.com/repos/prismagraphql/prisma/pulls/2647/comments","review_comment_url":"https://api.github.com/repos/prismagraphql/prisma/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prismagraphql/prisma/issues/2647/comments","statuses_url":"https://api.github.com/repos/prismagraphql/prisma/statuses/2bd35bc79ed4d351a2a035d7a54124731dd6862e","head":{"label":"prismagraphql:refactor-mutaction-hierarchy","ref":"refactor-mutaction-hierarchy","sha":"2bd35bc79ed4d351a2a035d7a54124731dd6862e","user":{"login":"prismagraphql","id":17219288,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MjE5Mjg4","avatar_url":"https://avatars0.githubusercontent.com/u/17219288?v=4","gravatar_id":"","url":"https://api.github.com/users/prismagraphql","html_url":"https://github.com/prismagraphql","followers_url":"https://api.github.com/users/prismagraphql/followers","following_url":"https://api.github.com/users/prismagraphql/following{/other_user}","gists_url":"https://api.github.com/users/prismagraphql/gists{/gist_id}","starred_url":"https://api.github.com/users/prismagraphql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prismagraphql/subscriptions","organizations_url":"https://api.github.com/users/prismagraphql/orgs","repos_url":"https://api.github.com/users/prismagraphql/repos","events_url":"https://api.github.com/users/prismagraphql/events{/privacy}","received_events_url":"https://api.github.com/users/prismagraphql/received_events","type":"Organization","site_admin":false},"repo":{"id":69164196,"node_id":"MDEwOlJlcG9zaXRvcnk2OTE2NDE5Ng==","name":"prisma","full_name":"prismagraphql/prisma","owner":{"login":"prismagraphql","id":17219288,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MjE5Mjg4","avatar_url":"https://avatars0.githubusercontent.com/u/17219288?v=4","gravatar_id":"","url":"https://api.github.com/users/prismagraphql","html_url":"https://github.com/prismagraphql","followers_url":"https://api.github.com/users/prismagraphql/followers","following_url":"https://api.github.com/users/prismagraphql/following{/other_user}","gists_url":"https://api.github.com/users/prismagraphql/gists{/gist_id}","starred_url":"https://api.github.com/users/prismagraphql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prismagraphql/subscriptions","organizations_url":"https://api.github.com/users/prismagraphql/orgs","repos_url":"https://api.github.com/users/prismagraphql/repos","events_url":"https://api.github.com/users/prismagraphql/events{/privacy}","received_events_url":"https://api.github.com/users/prismagraphql/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prismagraphql/prisma","description":"⚡️ Prisma turns your database into a realtime GraphQL API","fork":false,"url":"https://api.github.com/repos/prismagraphql/prisma","forks_url":"https://api.github.com/repos/prismagraphql/prisma/forks","keys_url":"https://api.github.com/repos/prismagraphql/prisma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prismagraphql/prisma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prismagraphql/prisma/teams","hooks_url":"https://api.github.com/repos/prismagraphql/prisma/hooks","issue_events_url":"https://api.github.com/repos/prismagraphql/prisma/issues/events{/number}","events_url":"https://api.github.com/repos/prismagraphql/prisma/events","assignees_url":"https://api.github.com/repos/prismagraphql/prisma/assignees{/user}","branches_url":"https://api.github.com/repos/prismagraphql/prisma/branches{/branch}","tags_url":"https://api.github.com/repos/prismagraphql/prisma/tags","blobs_url":"https://api.github.com/repos/prismagraphql/prisma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prismagraphql/prisma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prismagraphql/prisma/git/refs{/sha}","trees_url":"https://api.github.com/repos/prismagraphql/prisma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prismagraphql/prisma/statuses/{sha}","languages_url":"https://api.github.com/repos/prismagraphql/prisma/languages","stargazers_url":"https://api.github.com/repos/prismagraphql/prisma/stargazers","contributors_url":"https://api.github.com/repos/prismagraphql/prisma/contributors","subscribers_url":"https://api.github.com/repos/prismagraphql/prisma/subscribers","subscription_url":"https://api.github.com/repos/prismagraphql/prisma/subscription","commits_url":"https://api.github.com/repos/prismagraphql/prisma/commits{/sha}","git_commits_url":"https://api.github.com/repos/prismagraphql/prisma/git/commits{/sha}","comments_url":"https://api.github.com/repos/prismagraphql/prisma/comments{/number}","issue_comment_url":"https://api.github.com/repos/prismagraphql/prisma/issues/comments{/number}","contents_url":"https://api.github.com/repos/prismagraphql/prisma/contents/{+path}","compare_url":"https://api.github.com/repos/prismagraphql/prisma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prismagraphql/prisma/merges","archive_url":"https://api.github.com/repos/prismagraphql/prisma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prismagraphql/prisma/downloads","issues_url":"https://api.github.com/repos/prismagraphql/prisma/issues{/number}","pulls_url":"https://api.github.com/repos/prismagraphql/prisma/pulls{/number}","milestones_url":"https://api.github.com/repos/prismagraphql/prisma/milestones{/number}","notifications_url":"https://api.github.com/repos/prismagraphql/prisma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prismagraphql/prisma/labels{/name}","releases_url":"https://api.github.com/repos/prismagraphql/prisma/releases{/id}","deployments_url":"https://api.github.com/repos/prismagraphql/prisma/deployments","created_at":"2016-09-25T12:54:40Z","updated_at":"2018-06-26T17:10:38Z","pushed_at":"2018-06-26T17:26:52Z","git_url":"git://github.com/prismagraphql/prisma.git","ssh_url":"git@github.com:prismagraphql/prisma.git","clone_url":"https://github.com/prismagraphql/prisma.git","svn_url":"https://github.com/prismagraphql/prisma","homepage":"https://www.prisma.io/","size":18304,"stargazers_count":9019,"watchers_count":9019,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":509,"mirror_url":null,"archived":false,"open_issues_count":496,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":509,"open_issues":496,"watchers":9019,"default_branch":"master"}},"base":{"label":"prismagraphql:alpha","ref":"alpha","sha":"d3670e82f629a25c586711badccc2a63628637fb","user":{"login":"prismagraphql","id":17219288,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MjE5Mjg4","avatar_url":"https://avatars0.githubusercontent.com/u/17219288?v=4","gravatar_id":"","url":"https://api.github.com/users/prismagraphql","html_url":"https://github.com/prismagraphql","followers_url":"https://api.github.com/users/prismagraphql/followers","following_url":"https://api.github.com/users/prismagraphql/following{/other_user}","gists_url":"https://api.github.com/users/prismagraphql/gists{/gist_id}","starred_url":"https://api.github.com/users/prismagraphql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prismagraphql/subscriptions","organizations_url":"https://api.github.com/users/prismagraphql/orgs","repos_url":"https://api.github.com/users/prismagraphql/repos","events_url":"https://api.github.com/users/prismagraphql/events{/privacy}","received_events_url":"https://api.github.com/users/prismagraphql/received_events","type":"Organization","site_admin":false},"repo":{"id":69164196,"node_id":"MDEwOlJlcG9zaXRvcnk2OTE2NDE5Ng==","name":"prisma","full_name":"prismagraphql/prisma","owner":{"login":"prismagraphql","id":17219288,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MjE5Mjg4","avatar_url":"https://avatars0.githubusercontent.com/u/17219288?v=4","gravatar_id":"","url":"https://api.github.com/users/prismagraphql","html_url":"https://github.com/prismagraphql","followers_url":"https://api.github.com/users/prismagraphql/followers","following_url":"https://api.github.com/users/prismagraphql/following{/other_user}","gists_url":"https://api.github.com/users/prismagraphql/gists{/gist_id}","starred_url":"https://api.github.com/users/prismagraphql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prismagraphql/subscriptions","organizations_url":"https://api.github.com/users/prismagraphql/orgs","repos_url":"https://api.github.com/users/prismagraphql/repos","events_url":"https://api.github.com/users/prismagraphql/events{/privacy}","received_events_url":"https://api.github.com/users/prismagraphql/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prismagraphql/prisma","description":"⚡️ Prisma turns your database into a realtime GraphQL API","fork":false,"url":"https://api.github.com/repos/prismagraphql/prisma","forks_url":"https://api.github.com/repos/prismagraphql/prisma/forks","keys_url":"https://api.github.com/repos/prismagraphql/prisma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prismagraphql/prisma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prismagraphql/prisma/teams","hooks_url":"https://api.github.com/repos/prismagraphql/prisma/hooks","issue_events_url":"https://api.github.com/repos/prismagraphql/prisma/issues/events{/number}","events_url":"https://api.github.com/repos/prismagraphql/prisma/events","assignees_url":"https://api.github.com/repos/prismagraphql/prisma/assignees{/user}","branches_url":"https://api.github.com/repos/prismagraphql/prisma/branches{/branch}","tags_url":"https://api.github.com/repos/prismagraphql/prisma/tags","blobs_url":"https://api.github.com/repos/prismagraphql/prisma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prismagraphql/prisma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prismagraphql/prisma/git/refs{/sha}","trees_url":"https://api.github.com/repos/prismagraphql/prisma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prismagraphql/prisma/statuses/{sha}","languages_url":"https://api.github.com/repos/prismagraphql/prisma/languages","stargazers_url":"https://api.github.com/repos/prismagraphql/prisma/stargazers","contributors_url":"https://api.github.com/repos/prismagraphql/prisma/contributors","subscribers_url":"https://api.github.com/repos/prismagraphql/prisma/subscribers","subscription_url":"https://api.github.com/repos/prismagraphql/prisma/subscription","commits_url":"https://api.github.com/repos/prismagraphql/prisma/commits{/sha}","git_commits_url":"https://api.github.com/repos/prismagraphql/prisma/git/commits{/sha}","comments_url":"https://api.github.com/repos/prismagraphql/prisma/comments{/number}","issue_comment_url":"https://api.github.com/repos/prismagraphql/prisma/issues/comments{/number}","contents_url":"https://api.github.com/repos/prismagraphql/prisma/contents/{+path}","compare_url":"https://api.github.com/repos/prismagraphql/prisma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prismagraphql/prisma/merges","archive_url":"https://api.github.com/repos/prismagraphql/prisma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prismagraphql/prisma/downloads","issues_url":"https://api.github.com/repos/prismagraphql/prisma/issues{/number}","pulls_url":"https://api.github.com/repos/prismagraphql/prisma/pulls{/number}","milestones_url":"https://api.github.com/repos/prismagraphql/prisma/milestones{/number}","notifications_url":"https://api.github.com/repos/prismagraphql/prisma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prismagraphql/prisma/labels{/name}","releases_url":"https://api.github.com/repos/prismagraphql/prisma/releases{/id}","deployments_url":"https://api.github.com/repos/prismagraphql/prisma/deployments","created_at":"2016-09-25T12:54:40Z","updated_at":"2018-06-26T17:10:38Z","pushed_at":"2018-06-26T17:26:52Z","git_url":"git://github.com/prismagraphql/prisma.git","ssh_url":"git@github.com:prismagraphql/prisma.git","clone_url":"https://github.com/prismagraphql/prisma.git","svn_url":"https://github.com/prismagraphql/prisma","homepage":"https://www.prisma.io/","size":18304,"stargazers_count":9019,"watchers_count":9019,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":509,"mirror_url":null,"archived":false,"open_issues_count":496,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":509,"open_issues":496,"watchers":9019,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prismagraphql/prisma/pulls/2647"},"html":{"href":"https://github.com/prismagraphql/prisma/pull/2647"},"issue":{"href":"https://api.github.com/repos/prismagraphql/prisma/issues/2647"},"comments":{"href":"https://api.github.com/repos/prismagraphql/prisma/issues/2647/comments"},"review_comments":{"href":"https://api.github.com/repos/prismagraphql/prisma/pulls/2647/comments"},"review_comment":{"href":"https://api.github.com/repos/prismagraphql/prisma/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prismagraphql/prisma/pulls/2647/commits"},"statuses":{"href":"https://api.github.com/repos/prismagraphql/prisma/statuses/2bd35bc79ed4d351a2a035d7a54124731dd6862e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}