{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/comments/173211297","pull_request_review_id":102359155,"id":173211297,"diff_hunk":"@@ -0,0 +1,37 @@\n+'use strict';\n+\n+const Weather = require('../models/weather');\n+const Category = require('../models/category');\n+const News = require('../models/news');\n+\n+exports.list = async (req, res, next) => {\n+    const category = req.params.category;\n+\n+    if (!Category.exists(category)) {\n+        next();\n+    }\n+\n+    let weather;\n+    try {\n+        weather = await Weather.filter(req.query);\n+    } catch (e) {\n+        console.error(e.message);","path":"src/controllers/news.js","position":18,"original_position":18,"commit_id":"ec13f5a21030beee9162b1eff0cc7cc49def4ba8","original_commit_id":"ec13f5a21030beee9162b1eff0cc7cc49def4ba8","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":"Не круто. Давай как в туториале express'а","created_at":"2018-03-08T16:25:59Z","updated_at":"2018-03-08T16:54:23Z","html_url":"https://github.com/urfu-2017/webdev-task-1/pull/33#discussion_r173211297","pull_request_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/33","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/comments/173211297"},"html":{"href":"https://github.com/urfu-2017/webdev-task-1/pull/33#discussion_r173211297"},"pull_request":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/33","id":173723358,"html_url":"https://github.com/urfu-2017/webdev-task-1/pull/33","diff_url":"https://github.com/urfu-2017/webdev-task-1/pull/33.diff","patch_url":"https://github.com/urfu-2017/webdev-task-1/pull/33.patch","issue_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/issues/33","number":33,"state":"open","locked":false,"title":"Марков Евгений","user":{"login":"evgenymarkov","id":16443248,"avatar_url":"https://avatars3.githubusercontent.com/u/16443248?v=4","gravatar_id":"","url":"https://api.github.com/users/evgenymarkov","html_url":"https://github.com/evgenymarkov","followers_url":"https://api.github.com/users/evgenymarkov/followers","following_url":"https://api.github.com/users/evgenymarkov/following{/other_user}","gists_url":"https://api.github.com/users/evgenymarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/evgenymarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evgenymarkov/subscriptions","organizations_url":"https://api.github.com/users/evgenymarkov/orgs","repos_url":"https://api.github.com/users/evgenymarkov/repos","events_url":"https://api.github.com/users/evgenymarkov/events{/privacy}","received_events_url":"https://api.github.com/users/evgenymarkov/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-08T12:28:39Z","updated_at":"2018-03-08T16:54:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5dccfb57224e3f101f7c27b9d3b7c2cddecd9f60","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/33/commits","review_comments_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/33/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/33/comments","statuses_url":"https://api.github.com/repos/urfu-2017/webdev-task-1/statuses/ec13f5a21030beee9162b1eff0cc7cc49def4ba8","head":{"label":"evgenymarkov:master","ref":"master","sha":"ec13f5a21030beee9162b1eff0cc7cc49def4ba8","user":{"login":"evgenymarkov","id":16443248,"avatar_url":"https://avatars3.githubusercontent.com/u/16443248?v=4","gravatar_id":"","url":"https://api.github.com/users/evgenymarkov","html_url":"https://github.com/evgenymarkov","followers_url":"https://api.github.com/users/evgenymarkov/followers","following_url":"https://api.github.com/users/evgenymarkov/following{/other_user}","gists_url":"https://api.github.com/users/evgenymarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/evgenymarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evgenymarkov/subscriptions","organizations_url":"https://api.github.com/users/evgenymarkov/orgs","repos_url":"https://api.github.com/users/evgenymarkov/repos","events_url":"https://api.github.com/users/evgenymarkov/events{/privacy}","received_events_url":"https://api.github.com/users/evgenymarkov/received_events","type":"User","site_admin":false},"repo":{"id":123954222,"name":"webdev-task-1","full_name":"evgenymarkov/webdev-task-1","owner":{"login":"evgenymarkov","id":16443248,"avatar_url":"https://avatars3.githubusercontent.com/u/16443248?v=4","gravatar_id":"","url":"https://api.github.com/users/evgenymarkov","html_url":"https://github.com/evgenymarkov","followers_url":"https://api.github.com/users/evgenymarkov/followers","following_url":"https://api.github.com/users/evgenymarkov/following{/other_user}","gists_url":"https://api.github.com/users/evgenymarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/evgenymarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evgenymarkov/subscriptions","organizations_url":"https://api.github.com/users/evgenymarkov/orgs","repos_url":"https://api.github.com/users/evgenymarkov/repos","events_url":"https://api.github.com/users/evgenymarkov/events{/privacy}","received_events_url":"https://api.github.com/users/evgenymarkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evgenymarkov/webdev-task-1","description":"Задача «Илон слишком занят»","fork":true,"url":"https://api.github.com/repos/evgenymarkov/webdev-task-1","forks_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/forks","keys_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/teams","hooks_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/hooks","issue_events_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/issues/events{/number}","events_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/events","assignees_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/assignees{/user}","branches_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/branches{/branch}","tags_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/tags","blobs_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/statuses/{sha}","languages_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/languages","stargazers_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/stargazers","contributors_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/contributors","subscribers_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/subscribers","subscription_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/subscription","commits_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/contents/{+path}","compare_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/merges","archive_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/downloads","issues_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/issues{/number}","pulls_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/pulls{/number}","milestones_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/milestones{/number}","notifications_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/labels{/name}","releases_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/releases{/id}","deployments_url":"https://api.github.com/repos/evgenymarkov/webdev-task-1/deployments","created_at":"2018-03-05T17:28:29Z","updated_at":"2018-03-05T17:28:30Z","pushed_at":"2018-03-08T12:27:55Z","git_url":"git://github.com/evgenymarkov/webdev-task-1.git","ssh_url":"git@github.com:evgenymarkov/webdev-task-1.git","clone_url":"https://github.com/evgenymarkov/webdev-task-1.git","svn_url":"https://github.com/evgenymarkov/webdev-task-1","homepage":null,"size":78,"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-08T16:48:05Z","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":48,"mirror_url":null,"archived":false,"open_issues_count":35,"license":null,"forks":48,"open_issues":35,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/33"},"html":{"href":"https://github.com/urfu-2017/webdev-task-1/pull/33"},"issue":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/issues/33"},"comments":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/pulls/33/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/33/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2017/webdev-task-1/statuses/ec13f5a21030beee9162b1eff0cc7cc49def4ba8"}},"author_association":"NONE"}}
{"actor":{"display_login":"dimastark"}}