{"action":"created","comment":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/comments/37744200","id":37744200,"diff_hunk":"@@ -86,7 +87,7 @@ protected void addCompletions(@NotNull CompletionParameters parameters,\n         Project project = position.getProject();\n         GlobalSearchScope scope = GoUtil.moduleScopeWithoutTests(file);\n         VirtualFile containingDirectory = file.getVirtualFile().getParent();\n-        if (containingDirectory != null) {\n+        if (!GoTestFinder.isTestFile(file) && containingDirectory != null) {","path":"src/com/goide/completion/GoAutoImportCompletionContributor.java","position":13,"original_position":13,"commit_id":"af5c15727960fce3b68313dafeb246a6cd09f172","original_commit_id":"af5c15727960fce3b68313dafeb246a6cd09f172","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":"Test?","created_at":"2015-08-24T12:12:19Z","updated_at":"2015-08-24T12:12:19Z","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/1826#discussion_r37744200","pull_request_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/1826","_links":{"self":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/comments/37744200"},"html":{"href":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/1826#discussion_r37744200"},"pull_request":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/1826"}}},"pull_request":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/1826","id":43165511,"html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/1826","diff_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/1826.diff","patch_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/1826.patch","issue_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1826","number":1826,"state":"open","locked":false,"title":"Allow to import itself's path from test file","user":{"login":"eugene-auduchinok","id":3923587,"avatar_url":"https://avatars.githubusercontent.com/u/3923587?v=3","gravatar_id":"","url":"https://api.github.com/users/eugene-auduchinok","html_url":"https://github.com/eugene-auduchinok","followers_url":"https://api.github.com/users/eugene-auduchinok/followers","following_url":"https://api.github.com/users/eugene-auduchinok/following{/other_user}","gists_url":"https://api.github.com/users/eugene-auduchinok/gists{/gist_id}","starred_url":"https://api.github.com/users/eugene-auduchinok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugene-auduchinok/subscriptions","organizations_url":"https://api.github.com/users/eugene-auduchinok/orgs","repos_url":"https://api.github.com/users/eugene-auduchinok/repos","events_url":"https://api.github.com/users/eugene-auduchinok/events{/privacy}","received_events_url":"https://api.github.com/users/eugene-auduchinok/received_events","type":"User","site_admin":false},"body":"Fixes #1751.","created_at":"2015-08-24T11:40:46Z","updated_at":"2015-08-24T12:12:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8cb1aabbc946ec8283e5c734e5978ce4291b1f8e","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":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/milestones/6","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/milestones/1.0.0","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/milestones/6/labels","id":169045,"number":6,"title":"1.0.0","description":"","creator":{"login":"mtoader","id":372850,"avatar_url":"https://avatars.githubusercontent.com/u/372850?v=3","gravatar_id":"","url":"https://api.github.com/users/mtoader","html_url":"https://github.com/mtoader","followers_url":"https://api.github.com/users/mtoader/followers","following_url":"https://api.github.com/users/mtoader/following{/other_user}","gists_url":"https://api.github.com/users/mtoader/gists{/gist_id}","starred_url":"https://api.github.com/users/mtoader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtoader/subscriptions","organizations_url":"https://api.github.com/users/mtoader/orgs","repos_url":"https://api.github.com/users/mtoader/repos","events_url":"https://api.github.com/users/mtoader/events{/privacy}","received_events_url":"https://api.github.com/users/mtoader/received_events","type":"User","site_admin":false},"open_issues":72,"closed_issues":403,"state":"open","created_at":"2012-09-02T21:49:33Z","updated_at":"2015-08-24T12:10:05Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/1826/commits","review_comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/1826/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/1826/comments","statuses_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/statuses/af5c15727960fce3b68313dafeb246a6cd09f172","head":{"label":"eugene-auduchinok:import_path_from_test","ref":"import_path_from_test","sha":"af5c15727960fce3b68313dafeb246a6cd09f172","user":{"login":"eugene-auduchinok","id":3923587,"avatar_url":"https://avatars.githubusercontent.com/u/3923587?v=3","gravatar_id":"","url":"https://api.github.com/users/eugene-auduchinok","html_url":"https://github.com/eugene-auduchinok","followers_url":"https://api.github.com/users/eugene-auduchinok/followers","following_url":"https://api.github.com/users/eugene-auduchinok/following{/other_user}","gists_url":"https://api.github.com/users/eugene-auduchinok/gists{/gist_id}","starred_url":"https://api.github.com/users/eugene-auduchinok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugene-auduchinok/subscriptions","organizations_url":"https://api.github.com/users/eugene-auduchinok/orgs","repos_url":"https://api.github.com/users/eugene-auduchinok/repos","events_url":"https://api.github.com/users/eugene-auduchinok/events{/privacy}","received_events_url":"https://api.github.com/users/eugene-auduchinok/received_events","type":"User","site_admin":false},"repo":{"id":38313042,"name":"go-lang-idea-plugin","full_name":"eugene-auduchinok/go-lang-idea-plugin","owner":{"login":"eugene-auduchinok","id":3923587,"avatar_url":"https://avatars.githubusercontent.com/u/3923587?v=3","gravatar_id":"","url":"https://api.github.com/users/eugene-auduchinok","html_url":"https://github.com/eugene-auduchinok","followers_url":"https://api.github.com/users/eugene-auduchinok/followers","following_url":"https://api.github.com/users/eugene-auduchinok/following{/other_user}","gists_url":"https://api.github.com/users/eugene-auduchinok/gists{/gist_id}","starred_url":"https://api.github.com/users/eugene-auduchinok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugene-auduchinok/subscriptions","organizations_url":"https://api.github.com/users/eugene-auduchinok/orgs","repos_url":"https://api.github.com/users/eugene-auduchinok/repos","events_url":"https://api.github.com/users/eugene-auduchinok/events{/privacy}","received_events_url":"https://api.github.com/users/eugene-auduchinok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eugene-auduchinok/go-lang-idea-plugin","description":"Google Go language IDE built using the IntelliJ Platform","fork":true,"url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin","forks_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/forks","keys_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/teams","hooks_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/hooks","issue_events_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/events","assignees_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/tags","blobs_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/languages","stargazers_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/stargazers","contributors_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/contributors","subscribers_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/subscribers","subscription_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/subscription","commits_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/merges","archive_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/downloads","issues_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/labels{/name}","releases_url":"https://api.github.com/repos/eugene-auduchinok/go-lang-idea-plugin/releases{/id}","created_at":"2015-06-30T14:12:26Z","updated_at":"2015-06-30T14:12:28Z","pushed_at":"2015-08-24T11:39:34Z","git_url":"git://github.com/eugene-auduchinok/go-lang-idea-plugin.git","ssh_url":"git@github.com:eugene-auduchinok/go-lang-idea-plugin.git","clone_url":"https://github.com/eugene-auduchinok/go-lang-idea-plugin.git","svn_url":"https://github.com/eugene-auduchinok/go-lang-idea-plugin","homepage":"https://plugins.jetbrains.com/plugin/5047","size":22150,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"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":"81648465abcd8dbec4b9cd66d8a0e499f41a3fbf","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}","created_at":"2010-08-29T08:20:01Z","updated_at":"2015-08-24T10:48:07Z","pushed_at":"2015-08-24T11:40:46Z","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":34846,"stargazers_count":1973,"watchers_count":1973,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":290,"mirror_url":null,"open_issues_count":156,"forks":290,"open_issues":156,"watchers":1973,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/1826"},"html":{"href":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/1826"},"issue":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1826"},"comments":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1826/comments"},"review_comments":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/pulls/1826/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/1826/commits"},"statuses":{"href":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/statuses/af5c15727960fce3b68313dafeb246a6cd09f172"}}}}