{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/comments/62298179","id":62298179,"diff_hunk":"@@ -0,0 +1,60 @@\n+/**\n+ * Created by Max on 20.04.2016.\n+ */\n+var lastID = 3;\n+var tasksList = {\n+    tasks: [\n+        { id: \"1\", text: \"Buy a cat!\"},\n+        { id: \"2\", text: \"Buy a dog!\"},\n+        { id: \"3\", text: \"Buy a badger!\"}\n+    ]\n+};\n+\n+exports.getTaskList = (req, res) => {\n+    res.status(200);\n+    res.json(tasksList);\n+};\n+\n+function getIndexOfTaskWithId(taskId) {\n+    var tasks = tasksList.tasks;\n+    for (var i = 0; i < tasks.length; i++) {\n+        if (tasks[i].id === taskId) {\n+            return i;\n+        }\n+    }\n+    return undefined;","path":"controllers/tasks.js","position":25,"original_position":25,"commit_id":"c07a62b29efff17cc1eadd14ae6a2a2d63f3a6c4","original_commit_id":"c07a62b29efff17cc1eadd14ae6a2a2d63f3a6c4","user":{"login":"sameoldmadness","id":1537724,"avatar_url":"https://avatars.githubusercontent.com/u/1537724?v=3","gravatar_id":"","url":"https://api.github.com/users/sameoldmadness","html_url":"https://github.com/sameoldmadness","followers_url":"https://api.github.com/users/sameoldmadness/followers","following_url":"https://api.github.com/users/sameoldmadness/following{/other_user}","gists_url":"https://api.github.com/users/sameoldmadness/gists{/gist_id}","starred_url":"https://api.github.com/users/sameoldmadness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameoldmadness/subscriptions","organizations_url":"https://api.github.com/users/sameoldmadness/orgs","repos_url":"https://api.github.com/users/sameoldmadness/repos","events_url":"https://api.github.com/users/sameoldmadness/events{/privacy}","received_events_url":"https://api.github.com/users/sameoldmadness/received_events","type":"User","site_admin":false},"body":"Можно не возвращать `undefined` явно, это поведение функции по умолчанию.","created_at":"2016-05-06T07:48:30Z","updated_at":"2016-05-06T07:48:30Z","html_url":"https://github.com/urfu-2015/webdev-tasks-5/pull/29#discussion_r62298179","pull_request_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/comments/62298179"},"html":{"href":"https://github.com/urfu-2015/webdev-tasks-5/pull/29#discussion_r62298179"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/29","id":67775691,"html_url":"https://github.com/urfu-2015/webdev-tasks-5/pull/29","diff_url":"https://github.com/urfu-2015/webdev-tasks-5/pull/29.diff","patch_url":"https://github.com/urfu-2015/webdev-tasks-5/pull/29.patch","issue_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/issues/29","number":29,"state":"open","locked":false,"title":"Vedernikov Max","user":{"login":"Vedmax","id":6930009,"avatar_url":"https://avatars.githubusercontent.com/u/6930009?v=3","gravatar_id":"","url":"https://api.github.com/users/Vedmax","html_url":"https://github.com/Vedmax","followers_url":"https://api.github.com/users/Vedmax/followers","following_url":"https://api.github.com/users/Vedmax/following{/other_user}","gists_url":"https://api.github.com/users/Vedmax/gists{/gist_id}","starred_url":"https://api.github.com/users/Vedmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vedmax/subscriptions","organizations_url":"https://api.github.com/users/Vedmax/orgs","repos_url":"https://api.github.com/users/Vedmax/repos","events_url":"https://api.github.com/users/Vedmax/events{/privacy}","received_events_url":"https://api.github.com/users/Vedmax/received_events","type":"User","site_admin":false},"body":"выглядит жутковато пока. Надеюсь функциональность правильная","created_at":"2016-04-25T19:38:00Z","updated_at":"2016-05-06T07:48:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d22022f8c7d5820a2feb437ed9356832c3fb2c86","assignee":{"login":"sameoldmadness","id":1537724,"avatar_url":"https://avatars.githubusercontent.com/u/1537724?v=3","gravatar_id":"","url":"https://api.github.com/users/sameoldmadness","html_url":"https://github.com/sameoldmadness","followers_url":"https://api.github.com/users/sameoldmadness/followers","following_url":"https://api.github.com/users/sameoldmadness/following{/other_user}","gists_url":"https://api.github.com/users/sameoldmadness/gists{/gist_id}","starred_url":"https://api.github.com/users/sameoldmadness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameoldmadness/subscriptions","organizations_url":"https://api.github.com/users/sameoldmadness/orgs","repos_url":"https://api.github.com/users/sameoldmadness/repos","events_url":"https://api.github.com/users/sameoldmadness/events{/privacy}","received_events_url":"https://api.github.com/users/sameoldmadness/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/29/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/29/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/29/comments","statuses_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/statuses/c07a62b29efff17cc1eadd14ae6a2a2d63f3a6c4","head":{"label":"Vedmax:master","ref":"master","sha":"c07a62b29efff17cc1eadd14ae6a2a2d63f3a6c4","user":{"login":"Vedmax","id":6930009,"avatar_url":"https://avatars.githubusercontent.com/u/6930009?v=3","gravatar_id":"","url":"https://api.github.com/users/Vedmax","html_url":"https://github.com/Vedmax","followers_url":"https://api.github.com/users/Vedmax/followers","following_url":"https://api.github.com/users/Vedmax/following{/other_user}","gists_url":"https://api.github.com/users/Vedmax/gists{/gist_id}","starred_url":"https://api.github.com/users/Vedmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vedmax/subscriptions","organizations_url":"https://api.github.com/users/Vedmax/orgs","repos_url":"https://api.github.com/users/Vedmax/repos","events_url":"https://api.github.com/users/Vedmax/events{/privacy}","received_events_url":"https://api.github.com/users/Vedmax/received_events","type":"User","site_admin":false},"repo":{"id":55043077,"name":"webdev-tasks-5","full_name":"Vedmax/webdev-tasks-5","owner":{"login":"Vedmax","id":6930009,"avatar_url":"https://avatars.githubusercontent.com/u/6930009?v=3","gravatar_id":"","url":"https://api.github.com/users/Vedmax","html_url":"https://github.com/Vedmax","followers_url":"https://api.github.com/users/Vedmax/followers","following_url":"https://api.github.com/users/Vedmax/following{/other_user}","gists_url":"https://api.github.com/users/Vedmax/gists{/gist_id}","starred_url":"https://api.github.com/users/Vedmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vedmax/subscriptions","organizations_url":"https://api.github.com/users/Vedmax/orgs","repos_url":"https://api.github.com/users/Vedmax/repos","events_url":"https://api.github.com/users/Vedmax/events{/privacy}","received_events_url":"https://api.github.com/users/Vedmax/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vedmax/webdev-tasks-5","description":"","fork":true,"url":"https://api.github.com/repos/Vedmax/webdev-tasks-5","forks_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/forks","keys_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/teams","hooks_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/hooks","issue_events_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/issues/events{/number}","events_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/events","assignees_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/assignees{/user}","branches_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/branches{/branch}","tags_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/tags","blobs_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/statuses/{sha}","languages_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/languages","stargazers_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/stargazers","contributors_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/contributors","subscribers_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/subscribers","subscription_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/subscription","commits_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/contents/{+path}","compare_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/merges","archive_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/downloads","issues_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/issues{/number}","pulls_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/pulls{/number}","milestones_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/milestones{/number}","notifications_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/labels{/name}","releases_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/releases{/id}","deployments_url":"https://api.github.com/repos/Vedmax/webdev-tasks-5/deployments","created_at":"2016-03-30T07:45:22Z","updated_at":"2016-04-21T08:53:12Z","pushed_at":"2016-04-25T19:35:17Z","git_url":"git://github.com/Vedmax/webdev-tasks-5.git","ssh_url":"git@github.com:Vedmax/webdev-tasks-5.git","clone_url":"https://github.com/Vedmax/webdev-tasks-5.git","svn_url":"https://github.com/Vedmax/webdev-tasks-5","homepage":null,"size":10,"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":"Задача к лекциям «REST» и «Touch» – «TODOхи»","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-04-13T19:36:44Z","pushed_at":"2016-05-03T14:49:46Z","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":"","size":2,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":12,"forks":35,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/29"},"html":{"href":"https://github.com/urfu-2015/webdev-tasks-5/pull/29"},"issue":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/issues/29"},"comments":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/pulls/29/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/29/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-5/statuses/c07a62b29efff17cc1eadd14ae6a2a2d63f3a6c4"}}}}