{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/comments/58822464","id":58822464,"diff_hunk":"@@ -0,0 +1,59 @@\n+'use strict';\n+\n+const Task = require('../models/task');\n+\n+exports.list = (req, res) => {\n+    res.render('index', {\n+        tasks: Task.getAllTasks()\n+    });\n+};\n+\n+exports.addTask = (req, res) => {\n+    Task.addTask(req.body.task);\n+    res.redirect('/');\n+};\n+\n+exports.deleteTask = (req, res) => {\n+    var index = parseInt(Object.keys(req.body)[0]);\n+    Task.deleteTask(index);\n+    res.render('index', {\n+        tasks: Task.getAllTasks()\n+    });\n+};\n+\n+exports.updateTask = (req, res) => {\n+    var key = Object.keys(req.body)[0];","path":"controllers/tasks.js","position":25,"original_position":25,"commit_id":"1064d6b549aba9f696bb6a52cdc647acab71d1c4","original_commit_id":"1064d6b549aba9f696bb6a52cdc647acab71d1c4","user":{"login":"maxvipon","id":871596,"avatar_url":"https://avatars.githubusercontent.com/u/871596?v=3","gravatar_id":"","url":"https://api.github.com/users/maxvipon","html_url":"https://github.com/maxvipon","followers_url":"https://api.github.com/users/maxvipon/followers","following_url":"https://api.github.com/users/maxvipon/following{/other_user}","gists_url":"https://api.github.com/users/maxvipon/gists{/gist_id}","starred_url":"https://api.github.com/users/maxvipon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxvipon/subscriptions","organizations_url":"https://api.github.com/users/maxvipon/orgs","repos_url":"https://api.github.com/users/maxvipon/repos","events_url":"https://api.github.com/users/maxvipon/events{/privacy}","received_events_url":"https://api.github.com/users/maxvipon/received_events","type":"User","site_admin":false},"body":"`key` может быть `undefined`","created_at":"2016-04-07T05:59:36Z","updated_at":"2016-04-07T05:59:36Z","html_url":"https://github.com/urfu-2015/webdev-tasks-5/pull/26#discussion_r58822464","pull_request_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/comments/58822464"},"html":{"href":"https://github.com/urfu-2015/webdev-tasks-5/pull/26#discussion_r58822464"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/26","id":65511732,"html_url":"https://github.com/urfu-2015/webdev-tasks-5/pull/26","diff_url":"https://github.com/urfu-2015/webdev-tasks-5/pull/26.diff","patch_url":"https://github.com/urfu-2015/webdev-tasks-5/pull/26.patch","issue_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/issues/26","number":26,"state":"open","locked":false,"title":"Баженова Анна","user":{"login":"bazhenova","id":12410663,"avatar_url":"https://avatars.githubusercontent.com/u/12410663?v=3","gravatar_id":"","url":"https://api.github.com/users/bazhenova","html_url":"https://github.com/bazhenova","followers_url":"https://api.github.com/users/bazhenova/followers","following_url":"https://api.github.com/users/bazhenova/following{/other_user}","gists_url":"https://api.github.com/users/bazhenova/gists{/gist_id}","starred_url":"https://api.github.com/users/bazhenova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazhenova/subscriptions","organizations_url":"https://api.github.com/users/bazhenova/orgs","repos_url":"https://api.github.com/users/bazhenova/repos","events_url":"https://api.github.com/users/bazhenova/events{/privacy}","received_events_url":"https://api.github.com/users/bazhenova/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-04-06T18:16:29Z","updated_at":"2016-04-07T05:59:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"185b27bbe5dbcd2e962a6c277571a9e0db073140","assignee":{"login":"maxvipon","id":871596,"avatar_url":"https://avatars.githubusercontent.com/u/871596?v=3","gravatar_id":"","url":"https://api.github.com/users/maxvipon","html_url":"https://github.com/maxvipon","followers_url":"https://api.github.com/users/maxvipon/followers","following_url":"https://api.github.com/users/maxvipon/following{/other_user}","gists_url":"https://api.github.com/users/maxvipon/gists{/gist_id}","starred_url":"https://api.github.com/users/maxvipon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxvipon/subscriptions","organizations_url":"https://api.github.com/users/maxvipon/orgs","repos_url":"https://api.github.com/users/maxvipon/repos","events_url":"https://api.github.com/users/maxvipon/events{/privacy}","received_events_url":"https://api.github.com/users/maxvipon/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/26/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/26/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/issues/26/comments","statuses_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/statuses/1064d6b549aba9f696bb6a52cdc647acab71d1c4","head":{"label":"bazhenova:master","ref":"master","sha":"1064d6b549aba9f696bb6a52cdc647acab71d1c4","user":{"login":"bazhenova","id":12410663,"avatar_url":"https://avatars.githubusercontent.com/u/12410663?v=3","gravatar_id":"","url":"https://api.github.com/users/bazhenova","html_url":"https://github.com/bazhenova","followers_url":"https://api.github.com/users/bazhenova/followers","following_url":"https://api.github.com/users/bazhenova/following{/other_user}","gists_url":"https://api.github.com/users/bazhenova/gists{/gist_id}","starred_url":"https://api.github.com/users/bazhenova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazhenova/subscriptions","organizations_url":"https://api.github.com/users/bazhenova/orgs","repos_url":"https://api.github.com/users/bazhenova/repos","events_url":"https://api.github.com/users/bazhenova/events{/privacy}","received_events_url":"https://api.github.com/users/bazhenova/received_events","type":"User","site_admin":false},"repo":{"id":54831326,"name":"webdev-tasks-5","full_name":"bazhenova/webdev-tasks-5","owner":{"login":"bazhenova","id":12410663,"avatar_url":"https://avatars.githubusercontent.com/u/12410663?v=3","gravatar_id":"","url":"https://api.github.com/users/bazhenova","html_url":"https://github.com/bazhenova","followers_url":"https://api.github.com/users/bazhenova/followers","following_url":"https://api.github.com/users/bazhenova/following{/other_user}","gists_url":"https://api.github.com/users/bazhenova/gists{/gist_id}","starred_url":"https://api.github.com/users/bazhenova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bazhenova/subscriptions","organizations_url":"https://api.github.com/users/bazhenova/orgs","repos_url":"https://api.github.com/users/bazhenova/repos","events_url":"https://api.github.com/users/bazhenova/events{/privacy}","received_events_url":"https://api.github.com/users/bazhenova/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bazhenova/webdev-tasks-5","description":"","fork":true,"url":"https://api.github.com/repos/bazhenova/webdev-tasks-5","forks_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/forks","keys_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/teams","hooks_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/hooks","issue_events_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/issues/events{/number}","events_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/events","assignees_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/assignees{/user}","branches_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/branches{/branch}","tags_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/tags","blobs_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/git/refs{/sha}","trees_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/statuses/{sha}","languages_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/languages","stargazers_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/stargazers","contributors_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/contributors","subscribers_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/subscribers","subscription_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/subscription","commits_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/commits{/sha}","git_commits_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/git/commits{/sha}","comments_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/comments{/number}","issue_comment_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/issues/comments{/number}","contents_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/contents/{+path}","compare_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/merges","archive_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/downloads","issues_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/issues{/number}","pulls_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/pulls{/number}","milestones_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/milestones{/number}","notifications_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/labels{/name}","releases_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/releases{/id}","deployments_url":"https://api.github.com/repos/bazhenova/webdev-tasks-5/deployments","created_at":"2016-03-27T14:06:47Z","updated_at":"2016-04-06T18:16:29Z","pushed_at":"2016-04-06T18:16:28Z","git_url":"git://github.com/bazhenova/webdev-tasks-5.git","ssh_url":"git@github.com:bazhenova/webdev-tasks-5.git","clone_url":"https://github.com/bazhenova/webdev-tasks-5.git","svn_url":"https://github.com/bazhenova/webdev-tasks-5","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"urfu-2015:master","ref":"master","sha":"58860087673393c3066b98b55e3ae82f8ce6fc8e","user":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":54628927,"name":"webdev-tasks-5","full_name":"urfu-2015/webdev-tasks-5","owner":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2015/webdev-tasks-5","description":"","fork":false,"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5","forks_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/forks","keys_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/teams","hooks_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/events","assignees_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/tags","blobs_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/subscription","commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/merges","archive_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/downloads","issues_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/deployments","created_at":"2016-03-24T09:05:47Z","updated_at":"2016-03-24T09:05:47Z","pushed_at":"2016-04-06T23:28:05Z","git_url":"git://github.com/urfu-2015/webdev-tasks-5.git","ssh_url":"git@github.com:urfu-2015/webdev-tasks-5.git","clone_url":"https://github.com/urfu-2015/webdev-tasks-5.git","svn_url":"https://github.com/urfu-2015/webdev-tasks-5","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":25,"forks":33,"open_issues":25,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/26"},"html":{"href":"https://github.com/urfu-2015/webdev-tasks-5/pull/26"},"issue":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/issues/26"},"comments":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/statuses/1064d6b549aba9f696bb6a52cdc647acab71d1c4"}}}}