{"action":"created","comment":{"url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/comments/98889855","pull_request_review_id":19545408,"id":98889855,"diff_hunk":"@@ -35,6 +35,21 @@ func IsVendorDir(dir string) bool {\n \treturn strings.HasPrefix(dir, \"vendor/\") || strings.Contains(dir, \"/vendor/\")\n }\n \n+// isUri tells if s denotes an URI\n+func isUri(s string) bool {\n+\treturn strings.HasPrefix(s, \"file:///\")\n+}\n+\n+// pathToUri converts given path to file URI\n+func pathToUri(path string) string {","path":"langserver/util.go","position":null,"original_position":10,"commit_id":"0d214d0e8088af6eea0c6c044f9c127874cac7b0","original_commit_id":"31c88380b4146935441373c8ccf408a89db543da","user":{"login":"alexsaveliev","id":7010538,"avatar_url":"https://avatars.githubusercontent.com/u/7010538?v=3","gravatar_id":"","url":"https://api.github.com/users/alexsaveliev","html_url":"https://github.com/alexsaveliev","followers_url":"https://api.github.com/users/alexsaveliev/followers","following_url":"https://api.github.com/users/alexsaveliev/following{/other_user}","gists_url":"https://api.github.com/users/alexsaveliev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsaveliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsaveliev/subscriptions","organizations_url":"https://api.github.com/users/alexsaveliev/orgs","repos_url":"https://api.github.com/users/alexsaveliev/repos","events_url":"https://api.github.com/users/alexsaveliev/events{/privacy}","received_events_url":"https://api.github.com/users/alexsaveliev/received_events","type":"User","site_admin":false},"body":"done","created_at":"2017-02-01T13:12:52Z","updated_at":"2017-02-01T13:12:53Z","html_url":"https://github.com/sourcegraph/go-langserver/pull/97#discussion_r98889855","pull_request_url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/comments/98889855"},"html":{"href":"https://github.com/sourcegraph/go-langserver/pull/97#discussion_r98889855"},"pull_request":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/97","id":102270257,"html_url":"https://github.com/sourcegraph/go-langserver/pull/97","diff_url":"https://github.com/sourcegraph/go-langserver/pull/97.diff","patch_url":"https://github.com/sourcegraph/go-langserver/pull/97.patch","issue_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues/97","number":97,"state":"open","locked":false,"title":"Refactoring and Travis CI for forked repositories","user":{"login":"alexsaveliev","id":7010538,"avatar_url":"https://avatars.githubusercontent.com/u/7010538?v=3","gravatar_id":"","url":"https://api.github.com/users/alexsaveliev","html_url":"https://github.com/alexsaveliev","followers_url":"https://api.github.com/users/alexsaveliev/followers","following_url":"https://api.github.com/users/alexsaveliev/following{/other_user}","gists_url":"https://api.github.com/users/alexsaveliev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsaveliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsaveliev/subscriptions","organizations_url":"https://api.github.com/users/alexsaveliev/orgs","repos_url":"https://api.github.com/users/alexsaveliev/repos","events_url":"https://api.github.com/users/alexsaveliev/events{/privacy}","received_events_url":"https://api.github.com/users/alexsaveliev/received_events","type":"User","site_admin":false},"body":"- refactoring: extracted uri2path and path2uri methods. I'd like to have them defined in the single place plus I hope to make them support VFS, client, and OS-specific URIs and path elements\r\n- forcing Go import path for Travis build to `github.com/sourcegraph/go-langserver` to be able to run Travis builds on forked repositories","created_at":"2017-01-19T13:54:07Z","updated_at":"2017-02-01T13:12:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf5ffd647f71b63c20164d22a4607ab9e55cd1aa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/97/commits","review_comments_url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/97/comments","review_comment_url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues/97/comments","statuses_url":"https://api.github.com/repos/sourcegraph/go-langserver/statuses/0d214d0e8088af6eea0c6c044f9c127874cac7b0","head":{"label":"alexsaveliev:refactoring","ref":"refactoring","sha":"0d214d0e8088af6eea0c6c044f9c127874cac7b0","user":{"login":"alexsaveliev","id":7010538,"avatar_url":"https://avatars.githubusercontent.com/u/7010538?v=3","gravatar_id":"","url":"https://api.github.com/users/alexsaveliev","html_url":"https://github.com/alexsaveliev","followers_url":"https://api.github.com/users/alexsaveliev/followers","following_url":"https://api.github.com/users/alexsaveliev/following{/other_user}","gists_url":"https://api.github.com/users/alexsaveliev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsaveliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsaveliev/subscriptions","organizations_url":"https://api.github.com/users/alexsaveliev/orgs","repos_url":"https://api.github.com/users/alexsaveliev/repos","events_url":"https://api.github.com/users/alexsaveliev/events{/privacy}","received_events_url":"https://api.github.com/users/alexsaveliev/received_events","type":"User","site_admin":false},"repo":{"id":75183732,"name":"go-langserver","full_name":"alexsaveliev/go-langserver","owner":{"login":"alexsaveliev","id":7010538,"avatar_url":"https://avatars.githubusercontent.com/u/7010538?v=3","gravatar_id":"","url":"https://api.github.com/users/alexsaveliev","html_url":"https://github.com/alexsaveliev","followers_url":"https://api.github.com/users/alexsaveliev/followers","following_url":"https://api.github.com/users/alexsaveliev/following{/other_user}","gists_url":"https://api.github.com/users/alexsaveliev/gists{/gist_id}","starred_url":"https://api.github.com/users/alexsaveliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexsaveliev/subscriptions","organizations_url":"https://api.github.com/users/alexsaveliev/orgs","repos_url":"https://api.github.com/users/alexsaveliev/repos","events_url":"https://api.github.com/users/alexsaveliev/events{/privacy}","received_events_url":"https://api.github.com/users/alexsaveliev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexsaveliev/go-langserver","description":"Go language server to add Go support to editors and other tools that use the Language Server Protocol (LSP)","fork":true,"url":"https://api.github.com/repos/alexsaveliev/go-langserver","forks_url":"https://api.github.com/repos/alexsaveliev/go-langserver/forks","keys_url":"https://api.github.com/repos/alexsaveliev/go-langserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexsaveliev/go-langserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexsaveliev/go-langserver/teams","hooks_url":"https://api.github.com/repos/alexsaveliev/go-langserver/hooks","issue_events_url":"https://api.github.com/repos/alexsaveliev/go-langserver/issues/events{/number}","events_url":"https://api.github.com/repos/alexsaveliev/go-langserver/events","assignees_url":"https://api.github.com/repos/alexsaveliev/go-langserver/assignees{/user}","branches_url":"https://api.github.com/repos/alexsaveliev/go-langserver/branches{/branch}","tags_url":"https://api.github.com/repos/alexsaveliev/go-langserver/tags","blobs_url":"https://api.github.com/repos/alexsaveliev/go-langserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexsaveliev/go-langserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexsaveliev/go-langserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexsaveliev/go-langserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexsaveliev/go-langserver/statuses/{sha}","languages_url":"https://api.github.com/repos/alexsaveliev/go-langserver/languages","stargazers_url":"https://api.github.com/repos/alexsaveliev/go-langserver/stargazers","contributors_url":"https://api.github.com/repos/alexsaveliev/go-langserver/contributors","subscribers_url":"https://api.github.com/repos/alexsaveliev/go-langserver/subscribers","subscription_url":"https://api.github.com/repos/alexsaveliev/go-langserver/subscription","commits_url":"https://api.github.com/repos/alexsaveliev/go-langserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexsaveliev/go-langserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexsaveliev/go-langserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexsaveliev/go-langserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexsaveliev/go-langserver/contents/{+path}","compare_url":"https://api.github.com/repos/alexsaveliev/go-langserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexsaveliev/go-langserver/merges","archive_url":"https://api.github.com/repos/alexsaveliev/go-langserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexsaveliev/go-langserver/downloads","issues_url":"https://api.github.com/repos/alexsaveliev/go-langserver/issues{/number}","pulls_url":"https://api.github.com/repos/alexsaveliev/go-langserver/pulls{/number}","milestones_url":"https://api.github.com/repos/alexsaveliev/go-langserver/milestones{/number}","notifications_url":"https://api.github.com/repos/alexsaveliev/go-langserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexsaveliev/go-langserver/labels{/name}","releases_url":"https://api.github.com/repos/alexsaveliev/go-langserver/releases{/id}","deployments_url":"https://api.github.com/repos/alexsaveliev/go-langserver/deployments","created_at":"2016-11-30T12:12:41Z","updated_at":"2016-11-30T12:12:42Z","pushed_at":"2017-02-01T13:07:39Z","git_url":"git://github.com/alexsaveliev/go-langserver.git","ssh_url":"git@github.com:alexsaveliev/go-langserver.git","clone_url":"https://github.com/alexsaveliev/go-langserver.git","svn_url":"https://github.com/alexsaveliev/go-langserver","homepage":"https://sourcegraph.com","size":317,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sourcegraph:master","ref":"master","sha":"504135de96d6ff3c68f96827ec17d4c5a0503b5a","user":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"repo":{"id":70617656,"name":"go-langserver","full_name":"sourcegraph/go-langserver","owner":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcegraph/go-langserver","description":"Go language server to add Go support to editors and other tools that use the Language Server Protocol (LSP)","fork":false,"url":"https://api.github.com/repos/sourcegraph/go-langserver","forks_url":"https://api.github.com/repos/sourcegraph/go-langserver/forks","keys_url":"https://api.github.com/repos/sourcegraph/go-langserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcegraph/go-langserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcegraph/go-langserver/teams","hooks_url":"https://api.github.com/repos/sourcegraph/go-langserver/hooks","issue_events_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues/events{/number}","events_url":"https://api.github.com/repos/sourcegraph/go-langserver/events","assignees_url":"https://api.github.com/repos/sourcegraph/go-langserver/assignees{/user}","branches_url":"https://api.github.com/repos/sourcegraph/go-langserver/branches{/branch}","tags_url":"https://api.github.com/repos/sourcegraph/go-langserver/tags","blobs_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcegraph/go-langserver/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcegraph/go-langserver/languages","stargazers_url":"https://api.github.com/repos/sourcegraph/go-langserver/stargazers","contributors_url":"https://api.github.com/repos/sourcegraph/go-langserver/contributors","subscribers_url":"https://api.github.com/repos/sourcegraph/go-langserver/subscribers","subscription_url":"https://api.github.com/repos/sourcegraph/go-langserver/subscription","commits_url":"https://api.github.com/repos/sourcegraph/go-langserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcegraph/go-langserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcegraph/go-langserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcegraph/go-langserver/contents/{+path}","compare_url":"https://api.github.com/repos/sourcegraph/go-langserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcegraph/go-langserver/merges","archive_url":"https://api.github.com/repos/sourcegraph/go-langserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcegraph/go-langserver/downloads","issues_url":"https://api.github.com/repos/sourcegraph/go-langserver/issues{/number}","pulls_url":"https://api.github.com/repos/sourcegraph/go-langserver/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcegraph/go-langserver/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcegraph/go-langserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcegraph/go-langserver/labels{/name}","releases_url":"https://api.github.com/repos/sourcegraph/go-langserver/releases{/id}","deployments_url":"https://api.github.com/repos/sourcegraph/go-langserver/deployments","created_at":"2016-10-11T17:20:56Z","updated_at":"2017-01-26T03:57:48Z","pushed_at":"2017-02-01T13:07:41Z","git_url":"git://github.com/sourcegraph/go-langserver.git","ssh_url":"git@github.com:sourcegraph/go-langserver.git","clone_url":"https://github.com/sourcegraph/go-langserver.git","svn_url":"https://github.com/sourcegraph/go-langserver","homepage":"https://sourcegraph.com","size":318,"stargazers_count":29,"watchers_count":29,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":20,"forks":7,"open_issues":20,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/97"},"html":{"href":"https://github.com/sourcegraph/go-langserver/pull/97"},"issue":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/issues/97"},"comments":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/sourcegraph/go-langserver/statuses/0d214d0e8088af6eea0c6c044f9c127874cac7b0"}}}}
{"actor":{"display_login":"alexsaveliev"}}