{"action":"created","comment":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/comments/65401973","id":65401973,"diff_hunk":"@@ -0,0 +1,203 @@\n+/*\n+ * Copyright 2013-2016 Sergey Ignatov, Alexander Zolotov, Florin Patan\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package com.goide.inspections.unresolved;\n+\n+import com.goide.psi.*;\n+import com.goide.psi.impl.GoElementFactory;\n+import com.goide.psi.impl.GoTypeUtil;\n+import com.goide.refactor.GoRefactoringUtil;\n+import com.intellij.codeInsight.CodeInsightUtilCore;\n+import com.intellij.codeInsight.intention.HighPriorityAction;\n+import com.intellij.codeInsight.template.*;\n+import com.intellij.codeInspection.LocalQuickFixAndIntentionActionOnPsiElement;\n+import com.intellij.diagnostic.AttachmentFactory;\n+import com.intellij.openapi.application.ApplicationManager;\n+import com.intellij.openapi.command.CommandProcessor;\n+import com.intellij.openapi.editor.Document;\n+import com.intellij.openapi.editor.Editor;\n+import com.intellij.openapi.editor.RangeMarker;\n+import com.intellij.openapi.project.Project;\n+import com.intellij.openapi.util.TextRange;\n+import com.intellij.psi.*;\n+import com.intellij.psi.util.PsiTreeUtil;\n+import org.jetbrains.annotations.Nls;\n+import org.jetbrains.annotations.NotNull;\n+import org.jetbrains.annotations.Nullable;\n+\n+import java.util.List;\n+\n+public class GoIntroduceFunctionFix extends LocalQuickFixAndIntentionActionOnPsiElement implements HighPriorityAction{\n+  private final String myName;\n+  private static final String FAMILY_NAME = \"Create function\";\n+\n+  public GoIntroduceFunctionFix(@NotNull PsiElement element, @NotNull String name) {\n+    super(element);\n+    myName = name;\n+  }\n+\n+  @Override\n+  public void invoke(@NotNull Project project,\n+                     @NotNull PsiFile file,\n+                     @Nullable(\"is null when called from inspection\") Editor editor,\n+                     @NotNull PsiElement startElement,\n+                     @NotNull PsiElement endElement) {\n+    if (editor == null) {\n+      LOG.error(\"Cannot run quick fix without editor: \" + getClass().getSimpleName(),\n+                AttachmentFactory.createAttachment(file.getVirtualFile()));\n+      return;\n+    }\n+\n+    if (!(startElement instanceof GoCallExpr)) {\n+      return;\n+    }\n+\n+    GoCallExpr call = (GoCallExpr)startElement;\n+    List<GoExpression> args = call.getArgumentList().getExpressionList();\n+    List<GoType> resultTypes = GoTypeUtil.expectedTypes(call);\n+\n+    GoFunctionDeclaration function = createFunctionDeclaration(project, myName, args, resultTypes);\n+\n+    PsiElement anchor = PsiTreeUtil.getParentOfType(call, GoTopLevelDeclaration.class);\n+    if (anchor == null) return;\n+\n+    function = (GoFunctionDeclaration)file.addAfter(function, anchor);\n+    if (function == null) return;\n+    function = CodeInsightUtilCore.forcePsiPostprocessAndRestoreElement(function);\n+    if (function == null) return;\n+\n+    TemplateBuilderImpl builder = new TemplateBuilderImpl(function);\n+    setupFunctionParameters(function, builder, args);\n+    setupFunctionResult(function, builder);\n+    GoBlock body = function.getBlock();\n+    builder.setEndVariableAfter(body == null || body.getLbrace() == null ? function : body.getLbrace());\n+\n+    function = CodeInsightUtilCore.forcePsiPostprocessAndRestoreElement(function);\n+    if (function == null) return;\n+\n+    Document document = PsiDocumentManager.getInstance(project).getDocument(file);\n+    if (document == null) return;\n+    Template template = builder.buildTemplate();\n+    TextRange range = function.getTextRange();\n+    editor.getCaretModel().moveToOffset(range.getStartOffset());\n+    editor.getDocument().deleteString(range.getStartOffset(), range.getEndOffset());\n+\n+    startTemplate(editor, template, project);\n+  }\n+\n+  private static void setupFunctionResult(GoFunctionDeclaration function, TemplateBuilderImpl builder) {\n+    if (function.getSignature() == null) return;\n+    GoResult result = function.getSignature().getResult();\n+    if (result != null && !result.isVoid()) {\n+      if (result.getType() != null) {\n+        if (result.getType() instanceof GoTypeList) {\n+          for (GoType type : ((GoTypeList)result.getType()).getTypeList()) {\n+            builder.replaceElement(type, type.getText());\n+          }\n+        }\n+        else {\n+          builder.replaceElement(result.getType(), result.getType().getText());\n+        }\n+      }\n+    }\n+  }\n+\n+  private static void setupFunctionParameters(GoFunctionDeclaration function, TemplateBuilderImpl builder, List<GoExpression> args) {\n+    if (function.getSignature() == null) return;\n+    int i = 0;\n+    List<GoParameterDeclaration> parameterList = function.getSignature().getParameters().getParameterDeclarationList();\n+    for (GoParameterDeclaration parameterDeclaration : parameterList) {\n+      builder.replaceElement(parameterDeclaration.getType(), parameterDeclaration.getType().getText());\n+      for (GoParamDefinition parameter : parameterDeclaration.getParamDefinitionList()) {\n+        builder.replaceElement(parameter.getIdentifier(), GoRefactoringUtil.getNameSuggestedExpression(args.get(i), function));\n+        i++;\n+      }\n+    }\n+  }\n+\n+\n+  private static void startTemplate(@NotNull final Editor editor,\n+                                    final Template template,\n+                                    @NotNull final Project project) {\n+    Runnable runnable = new Runnable() {\n+      @Override\n+      public void run() {\n+        if (project.isDisposed() || editor.isDisposed()) return;\n+        CommandProcessor.getInstance().executeCommand(project, new Runnable() {\n+          @Override\n+          public void run() {\n+            TemplateManager.getInstance(project).startTemplate(editor, template, null);\n+          }\n+        }, null, null);","path":"src/com/goide/inspections/unresolved/GoIntroduceFunctionFix.java","position":144,"original_position":144,"commit_id":"0b62ae9b49166cfa48535192986b018253638b1e","original_commit_id":"0b62ae9b49166cfa48535192986b018253638b1e","user":{"login":"zolotov","id":140920,"avatar_url":"https://avatars.githubusercontent.com/u/140920?v=3","gravatar_id":"","url":"https://api.github.com/users/zolotov","html_url":"https://github.com/zolotov","followers_url":"https://api.github.com/users/zolotov/followers","following_url":"https://api.github.com/users/zolotov/following{/other_user}","gists_url":"https://api.github.com/users/zolotov/gists{/gist_id}","starred_url":"https://api.github.com/users/zolotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolotov/subscriptions","organizations_url":"https://api.github.com/users/zolotov/orgs","repos_url":"https://api.github.com/users/zolotov/repos","events_url":"https://api.github.com/users/zolotov/events{/privacy}","received_events_url":"https://api.github.com/users/zolotov/received_events","type":"User","site_admin":false},"body":"Fill command name and group","created_at":"2016-06-01T17:05:19Z","updated_at":"2016-06-01T17:05:19Z","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/2543#discussion_r65401973","pull_request_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/2543","_links":{"self":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/comments/65401973"},"html":{"href":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/2543#discussion_r65401973"},"pull_request":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/2543"}}},"pull_request":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/2543","id":71429765,"html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/2543","diff_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/2543.diff","patch_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/2543.patch","issue_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2543","number":2543,"state":"open","locked":false,"title":"Add IntroduceFunctionFix","user":{"login":"grenki","id":6865824,"avatar_url":"https://avatars.githubusercontent.com/u/6865824?v=3","gravatar_id":"","url":"https://api.github.com/users/grenki","html_url":"https://github.com/grenki","followers_url":"https://api.github.com/users/grenki/followers","following_url":"https://api.github.com/users/grenki/following{/other_user}","gists_url":"https://api.github.com/users/grenki/gists{/gist_id}","starred_url":"https://api.github.com/users/grenki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grenki/subscriptions","organizations_url":"https://api.github.com/users/grenki/orgs","repos_url":"https://api.github.com/users/grenki/repos","events_url":"https://api.github.com/users/grenki/events{/privacy}","received_events_url":"https://api.github.com/users/grenki/received_events","type":"User","site_admin":false},"body":" - move getSuggestedNames to GoRefactoringUtil\r\n - create GoTypeUtil#getExpectedType","created_at":"2016-05-25T17:17:45Z","updated_at":"2016-06-01T17:05:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cffe5f86df5a9df625f9d3f6148ba7755d26dbbd","assignee":{"login":"zolotov","id":140920,"avatar_url":"https://avatars.githubusercontent.com/u/140920?v=3","gravatar_id":"","url":"https://api.github.com/users/zolotov","html_url":"https://github.com/zolotov","followers_url":"https://api.github.com/users/zolotov/followers","following_url":"https://api.github.com/users/zolotov/following{/other_user}","gists_url":"https://api.github.com/users/zolotov/gists{/gist_id}","starred_url":"https://api.github.com/users/zolotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolotov/subscriptions","organizations_url":"https://api.github.com/users/zolotov/orgs","repos_url":"https://api.github.com/users/zolotov/repos","events_url":"https://api.github.com/users/zolotov/events{/privacy}","received_events_url":"https://api.github.com/users/zolotov/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/2543/commits","review_comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/2543/comments","review_comment_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2543/comments","statuses_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/statuses/0b62ae9b49166cfa48535192986b018253638b1e","head":{"label":"grenki:CreateFunctionQuickFix","ref":"CreateFunctionQuickFix","sha":"0b62ae9b49166cfa48535192986b018253638b1e","user":{"login":"grenki","id":6865824,"avatar_url":"https://avatars.githubusercontent.com/u/6865824?v=3","gravatar_id":"","url":"https://api.github.com/users/grenki","html_url":"https://github.com/grenki","followers_url":"https://api.github.com/users/grenki/followers","following_url":"https://api.github.com/users/grenki/following{/other_user}","gists_url":"https://api.github.com/users/grenki/gists{/gist_id}","starred_url":"https://api.github.com/users/grenki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grenki/subscriptions","organizations_url":"https://api.github.com/users/grenki/orgs","repos_url":"https://api.github.com/users/grenki/repos","events_url":"https://api.github.com/users/grenki/events{/privacy}","received_events_url":"https://api.github.com/users/grenki/received_events","type":"User","site_admin":false},"repo":{"id":58662360,"name":"go-lang-idea-plugin","full_name":"grenki/go-lang-idea-plugin","owner":{"login":"grenki","id":6865824,"avatar_url":"https://avatars.githubusercontent.com/u/6865824?v=3","gravatar_id":"","url":"https://api.github.com/users/grenki","html_url":"https://github.com/grenki","followers_url":"https://api.github.com/users/grenki/followers","following_url":"https://api.github.com/users/grenki/following{/other_user}","gists_url":"https://api.github.com/users/grenki/gists{/gist_id}","starred_url":"https://api.github.com/users/grenki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grenki/subscriptions","organizations_url":"https://api.github.com/users/grenki/orgs","repos_url":"https://api.github.com/users/grenki/repos","events_url":"https://api.github.com/users/grenki/events{/privacy}","received_events_url":"https://api.github.com/users/grenki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grenki/go-lang-idea-plugin","description":"Google Go language IDE built using the IntelliJ Platform","fork":true,"url":"https://api.github.com/repos/grenki/go-lang-idea-plugin","forks_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/forks","keys_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/teams","hooks_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/hooks","issue_events_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/events","assignees_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/tags","blobs_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/languages","stargazers_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/stargazers","contributors_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/contributors","subscribers_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/subscribers","subscription_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/subscription","commits_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/merges","archive_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/downloads","issues_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/labels{/name}","releases_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/grenki/go-lang-idea-plugin/deployments","created_at":"2016-05-12T17:25:35Z","updated_at":"2016-05-12T17:25:39Z","pushed_at":"2016-05-29T18:57:48Z","git_url":"git://github.com/grenki/go-lang-idea-plugin.git","ssh_url":"git@github.com:grenki/go-lang-idea-plugin.git","clone_url":"https://github.com/grenki/go-lang-idea-plugin.git","svn_url":"https://github.com/grenki/go-lang-idea-plugin","homepage":"https://plugins.jetbrains.com/plugin/5047","size":26786,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"go-lang-plugin-org:master","ref":"master","sha":"e98ac193b0aa908ebaf90b386c11fa3be1150823","user":{"login":"go-lang-plugin-org","id":6117521,"avatar_url":"https://avatars.githubusercontent.com/u/6117521?v=3","gravatar_id":"","url":"https://api.github.com/users/go-lang-plugin-org","html_url":"https://github.com/go-lang-plugin-org","followers_url":"https://api.github.com/users/go-lang-plugin-org/followers","following_url":"https://api.github.com/users/go-lang-plugin-org/following{/other_user}","gists_url":"https://api.github.com/users/go-lang-plugin-org/gists{/gist_id}","starred_url":"https://api.github.com/users/go-lang-plugin-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-lang-plugin-org/subscriptions","organizations_url":"https://api.github.com/users/go-lang-plugin-org/orgs","repos_url":"https://api.github.com/users/go-lang-plugin-org/repos","events_url":"https://api.github.com/users/go-lang-plugin-org/events{/privacy}","received_events_url":"https://api.github.com/users/go-lang-plugin-org/received_events","type":"Organization","site_admin":false},"repo":{"id":869754,"name":"go-lang-idea-plugin","full_name":"go-lang-plugin-org/go-lang-idea-plugin","owner":{"login":"go-lang-plugin-org","id":6117521,"avatar_url":"https://avatars.githubusercontent.com/u/6117521?v=3","gravatar_id":"","url":"https://api.github.com/users/go-lang-plugin-org","html_url":"https://github.com/go-lang-plugin-org","followers_url":"https://api.github.com/users/go-lang-plugin-org/followers","following_url":"https://api.github.com/users/go-lang-plugin-org/following{/other_user}","gists_url":"https://api.github.com/users/go-lang-plugin-org/gists{/gist_id}","starred_url":"https://api.github.com/users/go-lang-plugin-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-lang-plugin-org/subscriptions","organizations_url":"https://api.github.com/users/go-lang-plugin-org/orgs","repos_url":"https://api.github.com/users/go-lang-plugin-org/repos","events_url":"https://api.github.com/users/go-lang-plugin-org/events{/privacy}","received_events_url":"https://api.github.com/users/go-lang-plugin-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin","description":"Google Go language IDE built using the IntelliJ Platform","fork":false,"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin","forks_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/forks","keys_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/teams","hooks_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/hooks","issue_events_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/events","assignees_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/tags","blobs_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/languages","stargazers_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/stargazers","contributors_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/contributors","subscribers_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/subscribers","subscription_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/subscription","commits_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/merges","archive_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/downloads","issues_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/labels{/name}","releases_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/deployments","created_at":"2010-08-29T08:20:01Z","updated_at":"2016-06-01T14:17:38Z","pushed_at":"2016-05-31T23:22:02Z","git_url":"git://github.com/go-lang-plugin-org/go-lang-idea-plugin.git","ssh_url":"git@github.com:go-lang-plugin-org/go-lang-idea-plugin.git","clone_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin.git","svn_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin","homepage":"https://plugins.jetbrains.com/plugin/5047","size":61271,"stargazers_count":3405,"watchers_count":3405,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":400,"mirror_url":null,"open_issues_count":331,"forks":400,"open_issues":331,"watchers":3405,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/2543"},"html":{"href":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/2543"},"issue":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2543"},"comments":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/2543/comments"},"review_comments":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/2543/comments"},"review_comment":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/2543/commits"},"statuses":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/statuses/0b62ae9b49166cfa48535192986b018253638b1e"}}}}
{"actor":{"display_login":"zolotov"}}