{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/comments/173657350","pull_request_review_id":102884290,"id":173657350,"diff_hunk":"@@ -0,0 +1,27 @@\n+'use strict';\n+\n+const MetaWeather = require('metaweather');\n+const mw = new MetaWeather();\n+const WeatherInfo = require('../models/WeatherInfo');\n+const config = require('../config');\n+\n+exports.getWeatherInfoAsync = async (req) => {\n+    let locations = [];\n+\n+    if (req.query && req.query.lat && req.query.lon) {\n+        const latitude = parseFloat(req.query.lat);","path":"core/weather.js","position":12,"original_position":12,"commit_id":"c280acff5b902f1231e8177b81b9a6126dcb78c7","original_commit_id":"c280acff5b902f1231e8177b81b9a6126dcb78c7","user":{"login":"dimastark","id":11780431,"avatar_url":"https://avatars3.githubusercontent.com/u/11780431?v=4","gravatar_id":"","url":"https://api.github.com/users/dimastark","html_url":"https://github.com/dimastark","followers_url":"https://api.github.com/users/dimastark/followers","following_url":"https://api.github.com/users/dimastark/following{/other_user}","gists_url":"https://api.github.com/users/dimastark/gists{/gist_id}","starred_url":"https://api.github.com/users/dimastark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimastark/subscriptions","organizations_url":"https://api.github.com/users/dimastark/orgs","repos_url":"https://api.github.com/users/dimastark/repos","events_url":"https://api.github.com/users/dimastark/events{/privacy}","received_events_url":"https://api.github.com/users/dimastark/received_events","type":"User","site_admin":false},"body":"может назвать переменные `lat` и `lon` и тогда можно будет сделать вот так `.latLon({ lat, lon });`?","created_at":"2018-03-11T14:50:18Z","updated_at":"2018-03-11T14:51:24Z","html_url":"https://github.com/urfu-2017/webdev-task-1/pull/42#discussion_r173657350","pull_request_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/42","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/comments/173657350"},"html":{"href":"https://github.com/urfu-2017/webdev-task-1/pull/42#discussion_r173657350"},"pull_request":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/42","id":173944674,"html_url":"https://github.com/urfu-2017/webdev-task-1/pull/42","diff_url":"https://github.com/urfu-2017/webdev-task-1/pull/42.diff","patch_url":"https://github.com/urfu-2017/webdev-task-1/pull/42.patch","issue_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/issues/42","number":42,"state":"open","locked":false,"title":"Плисковский Михаил","user":{"login":"snoward","id":8896921,"avatar_url":"https://avatars2.githubusercontent.com/u/8896921?v=4","gravatar_id":"","url":"https://api.github.com/users/snoward","html_url":"https://github.com/snoward","followers_url":"https://api.github.com/users/snoward/followers","following_url":"https://api.github.com/users/snoward/following{/other_user}","gists_url":"https://api.github.com/users/snoward/gists{/gist_id}","starred_url":"https://api.github.com/users/snoward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoward/subscriptions","organizations_url":"https://api.github.com/users/snoward/orgs","repos_url":"https://api.github.com/users/snoward/repos","events_url":"https://api.github.com/users/snoward/events{/privacy}","received_events_url":"https://api.github.com/users/snoward/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-09T08:20:38Z","updated_at":"2018-03-11T14:51:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cdaf2f8d10017e3bb19f4317e4c3f6a1a747885d","assignee":{"login":"dimastark","id":11780431,"avatar_url":"https://avatars3.githubusercontent.com/u/11780431?v=4","gravatar_id":"","url":"https://api.github.com/users/dimastark","html_url":"https://github.com/dimastark","followers_url":"https://api.github.com/users/dimastark/followers","following_url":"https://api.github.com/users/dimastark/following{/other_user}","gists_url":"https://api.github.com/users/dimastark/gists{/gist_id}","starred_url":"https://api.github.com/users/dimastark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimastark/subscriptions","organizations_url":"https://api.github.com/users/dimastark/orgs","repos_url":"https://api.github.com/users/dimastark/repos","events_url":"https://api.github.com/users/dimastark/events{/privacy}","received_events_url":"https://api.github.com/users/dimastark/received_events","type":"User","site_admin":false},"assignees":[{"login":"dimastark","id":11780431,"avatar_url":"https://avatars3.githubusercontent.com/u/11780431?v=4","gravatar_id":"","url":"https://api.github.com/users/dimastark","html_url":"https://github.com/dimastark","followers_url":"https://api.github.com/users/dimastark/followers","following_url":"https://api.github.com/users/dimastark/following{/other_user}","gists_url":"https://api.github.com/users/dimastark/gists{/gist_id}","starred_url":"https://api.github.com/users/dimastark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimastark/subscriptions","organizations_url":"https://api.github.com/users/dimastark/orgs","repos_url":"https://api.github.com/users/dimastark/repos","events_url":"https://api.github.com/users/dimastark/events{/privacy}","received_events_url":"https://api.github.com/users/dimastark/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/42/commits","review_comments_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/42/comments","review_comment_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/issues/42/comments","statuses_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/statuses/c280acff5b902f1231e8177b81b9a6126dcb78c7","head":{"label":"snoward:master","ref":"master","sha":"c280acff5b902f1231e8177b81b9a6126dcb78c7","user":{"login":"snoward","id":8896921,"avatar_url":"https://avatars2.githubusercontent.com/u/8896921?v=4","gravatar_id":"","url":"https://api.github.com/users/snoward","html_url":"https://github.com/snoward","followers_url":"https://api.github.com/users/snoward/followers","following_url":"https://api.github.com/users/snoward/following{/other_user}","gists_url":"https://api.github.com/users/snoward/gists{/gist_id}","starred_url":"https://api.github.com/users/snoward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoward/subscriptions","organizations_url":"https://api.github.com/users/snoward/orgs","repos_url":"https://api.github.com/users/snoward/repos","events_url":"https://api.github.com/users/snoward/events{/privacy}","received_events_url":"https://api.github.com/users/snoward/received_events","type":"User","site_admin":false},"repo":{"id":123694958,"name":"webdev-task-1","full_name":"snoward/webdev-task-1","owner":{"login":"snoward","id":8896921,"avatar_url":"https://avatars2.githubusercontent.com/u/8896921?v=4","gravatar_id":"","url":"https://api.github.com/users/snoward","html_url":"https://github.com/snoward","followers_url":"https://api.github.com/users/snoward/followers","following_url":"https://api.github.com/users/snoward/following{/other_user}","gists_url":"https://api.github.com/users/snoward/gists{/gist_id}","starred_url":"https://api.github.com/users/snoward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoward/subscriptions","organizations_url":"https://api.github.com/users/snoward/orgs","repos_url":"https://api.github.com/users/snoward/repos","events_url":"https://api.github.com/users/snoward/events{/privacy}","received_events_url":"https://api.github.com/users/snoward/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/snoward/webdev-task-1","description":"Задача «Илон слишком занят»","fork":true,"url":"https://api.github.com/repos/snoward/webdev-task-1","forks_url":"https://api.github.com/repos/snoward/webdev-task-1/forks","keys_url":"https://api.github.com/repos/snoward/webdev-task-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snoward/webdev-task-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snoward/webdev-task-1/teams","hooks_url":"https://api.github.com/repos/snoward/webdev-task-1/hooks","issue_events_url":"https://api.github.com/repos/snoward/webdev-task-1/issues/events{/number}","events_url":"https://api.github.com/repos/snoward/webdev-task-1/events","assignees_url":"https://api.github.com/repos/snoward/webdev-task-1/assignees{/user}","branches_url":"https://api.github.com/repos/snoward/webdev-task-1/branches{/branch}","tags_url":"https://api.github.com/repos/snoward/webdev-task-1/tags","blobs_url":"https://api.github.com/repos/snoward/webdev-task-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snoward/webdev-task-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snoward/webdev-task-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/snoward/webdev-task-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snoward/webdev-task-1/statuses/{sha}","languages_url":"https://api.github.com/repos/snoward/webdev-task-1/languages","stargazers_url":"https://api.github.com/repos/snoward/webdev-task-1/stargazers","contributors_url":"https://api.github.com/repos/snoward/webdev-task-1/contributors","subscribers_url":"https://api.github.com/repos/snoward/webdev-task-1/subscribers","subscription_url":"https://api.github.com/repos/snoward/webdev-task-1/subscription","commits_url":"https://api.github.com/repos/snoward/webdev-task-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/snoward/webdev-task-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/snoward/webdev-task-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/snoward/webdev-task-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/snoward/webdev-task-1/contents/{+path}","compare_url":"https://api.github.com/repos/snoward/webdev-task-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snoward/webdev-task-1/merges","archive_url":"https://api.github.com/repos/snoward/webdev-task-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snoward/webdev-task-1/downloads","issues_url":"https://api.github.com/repos/snoward/webdev-task-1/issues{/number}","pulls_url":"https://api.github.com/repos/snoward/webdev-task-1/pulls{/number}","milestones_url":"https://api.github.com/repos/snoward/webdev-task-1/milestones{/number}","notifications_url":"https://api.github.com/repos/snoward/webdev-task-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snoward/webdev-task-1/labels{/name}","releases_url":"https://api.github.com/repos/snoward/webdev-task-1/releases{/id}","deployments_url":"https://api.github.com/repos/snoward/webdev-task-1/deployments","created_at":"2018-03-03T13:35:43Z","updated_at":"2018-03-03T13:35:45Z","pushed_at":"2018-03-11T14:35:33Z","git_url":"git://github.com/snoward/webdev-task-1.git","ssh_url":"git@github.com:snoward/webdev-task-1.git","clone_url":"https://github.com/snoward/webdev-task-1.git","svn_url":"https://github.com/snoward/webdev-task-1","homepage":null,"size":61,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2017:master","ref":"master","sha":"bf85b0023730ecd410cb060700ad38d578aa1f48","user":{"login":"urfu-2017","id":31925391,"avatar_url":"https://avatars1.githubusercontent.com/u/31925391?v=4","gravatar_id":"","url":"https://api.github.com/users/urfu-2017","html_url":"https://github.com/urfu-2017","followers_url":"https://api.github.com/users/urfu-2017/followers","following_url":"https://api.github.com/users/urfu-2017/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2017/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2017/subscriptions","organizations_url":"https://api.github.com/users/urfu-2017/orgs","repos_url":"https://api.github.com/users/urfu-2017/repos","events_url":"https://api.github.com/users/urfu-2017/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2017/received_events","type":"Organization","site_admin":false},"repo":{"id":123447876,"name":"webdev-task-1","full_name":"urfu-2017/webdev-task-1","owner":{"login":"urfu-2017","id":31925391,"avatar_url":"https://avatars1.githubusercontent.com/u/31925391?v=4","gravatar_id":"","url":"https://api.github.com/users/urfu-2017","html_url":"https://github.com/urfu-2017","followers_url":"https://api.github.com/users/urfu-2017/followers","following_url":"https://api.github.com/users/urfu-2017/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2017/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2017/subscriptions","organizations_url":"https://api.github.com/users/urfu-2017/orgs","repos_url":"https://api.github.com/users/urfu-2017/repos","events_url":"https://api.github.com/users/urfu-2017/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2017/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2017/webdev-task-1","description":"Задача «Илон слишком занят»","fork":false,"url":"https://api.github.com/repos/urfu-2017/webdev-task-1","forks_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/forks","keys_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/teams","hooks_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/hooks","issue_events_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/events","assignees_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/tags","blobs_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/languages","stargazers_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/stargazers","contributors_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/contributors","subscribers_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/subscribers","subscription_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/subscription","commits_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/merges","archive_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/downloads","issues_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/deployments","created_at":"2018-03-01T14:44:31Z","updated_at":"2018-03-01T15:00:51Z","pushed_at":"2018-03-11T14:35:34Z","git_url":"git://github.com/urfu-2017/webdev-task-1.git","ssh_url":"git@github.com:urfu-2017/webdev-task-1.git","clone_url":"https://github.com/urfu-2017/webdev-task-1.git","svn_url":"https://github.com/urfu-2017/webdev-task-1","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"archived":false,"open_issues_count":41,"license":null,"forks":49,"open_issues":41,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/42"},"html":{"href":"https://github.com/urfu-2017/webdev-task-1/pull/42"},"issue":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/issues/42"},"comments":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/statuses/c280acff5b902f1231e8177b81b9a6126dcb78c7"}},"author_association":"NONE"}}
{"actor":{"display_login":"dimastark"}}