{"action":"created","comment":{"url":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/comments/172024036","pull_request_review_id":100982288,"id":172024036,"diff_hunk":"@@ -0,0 +1,39 @@\n+'use strict';\n+\n+let state = 10;\n+\n+function handleRequest(request, response) {\n+  console.log('on request', request.url);\n+\n+  switch (request.url) {\n+    case '/state':\n+\n+      response.setHeader('Content-Type', 'text/html');\n+      response.write(`<h1>the current state is ${state}</h1>`);\n+\n+      break;\n+    case '/add':\n+      state = state + 1;\n+      response.setHeader('Content-Type', 'text/html');\n+      response.write(`<h1>OK  ${state}</h1>`);\n+      break;\n+    case '/subtract':\n+      state = state - 1;\n+      response.setHeader('Content-Type', 'text/html');\n+      response.write(`<h1>OK  ${state}</h1>`);\n+\n+      break;\n+    case '/rest':\n+      state = 10;\n+      response.setHeader('Content-Type', 'text/html');\n+      response.write(`<h1>the state is = ${state}</h1`);\n+      break;\n+    default:\n+      response.setHeader('Content-Type', 'text/html');\n+      response.write(`<h1>Error code 404 : 'Not found'\n+       <br> please try something else </h1>`);","path":"week1/homework/src/handleRequest.js","position":34,"original_position":34,"commit_id":"42686d64be7fc71a948d8e0c99e039a4d7ef5818","original_commit_id":"42686d64be7fc71a948d8e0c99e039a4d7ef5818","user":{"login":"GeorgeSapkin","id":5013206,"avatar_url":"https://avatars0.githubusercontent.com/u/5013206?v=4","gravatar_id":"","url":"https://api.github.com/users/GeorgeSapkin","html_url":"https://github.com/GeorgeSapkin","followers_url":"https://api.github.com/users/GeorgeSapkin/followers","following_url":"https://api.github.com/users/GeorgeSapkin/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeSapkin/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeSapkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeSapkin/subscriptions","organizations_url":"https://api.github.com/users/GeorgeSapkin/orgs","repos_url":"https://api.github.com/users/GeorgeSapkin/repos","events_url":"https://api.github.com/users/GeorgeSapkin/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeSapkin/received_events","type":"User","site_admin":false},"body":"You forgot to set `response.statusCode` to 404.","created_at":"2018-03-03T18:11:20Z","updated_at":"2018-03-03T18:13:15Z","html_url":"https://github.com/HackYourFuture/Node.js/pull/92#discussion_r172024036","pull_request_url":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/92","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/comments/172024036"},"html":{"href":"https://github.com/HackYourFuture/Node.js/pull/92#discussion_r172024036"},"pull_request":{"href":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/92"}}},"pull_request":{"url":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/92","id":172274538,"html_url":"https://github.com/HackYourFuture/Node.js/pull/92","diff_url":"https://github.com/HackYourFuture/Node.js/pull/92.diff","patch_url":"https://github.com/HackYourFuture/Node.js/pull/92.patch","issue_url":"https://api.github.com/repos/HackYourFuture/Node.js/issues/92","number":92,"state":"open","locked":false,"title":"week1 homework","user":{"login":"fadikurdi","id":29713475,"avatar_url":"https://avatars0.githubusercontent.com/u/29713475?v=4","gravatar_id":"","url":"https://api.github.com/users/fadikurdi","html_url":"https://github.com/fadikurdi","followers_url":"https://api.github.com/users/fadikurdi/followers","following_url":"https://api.github.com/users/fadikurdi/following{/other_user}","gists_url":"https://api.github.com/users/fadikurdi/gists{/gist_id}","starred_url":"https://api.github.com/users/fadikurdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fadikurdi/subscriptions","organizations_url":"https://api.github.com/users/fadikurdi/orgs","repos_url":"https://api.github.com/users/fadikurdi/repos","events_url":"https://api.github.com/users/fadikurdi/events{/privacy}","received_events_url":"https://api.github.com/users/fadikurdi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-01T15:47:57Z","updated_at":"2018-03-03T18:13:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3261939583561cd495a9682be2d80326b2769ab5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/92/commits","review_comments_url":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/92/comments","review_comment_url":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HackYourFuture/Node.js/issues/92/comments","statuses_url":"https://api.github.com/repos/HackYourFuture/Node.js/statuses/42686d64be7fc71a948d8e0c99e039a4d7ef5818","head":{"label":"fadikurdi:master","ref":"master","sha":"42686d64be7fc71a948d8e0c99e039a4d7ef5818","user":{"login":"fadikurdi","id":29713475,"avatar_url":"https://avatars0.githubusercontent.com/u/29713475?v=4","gravatar_id":"","url":"https://api.github.com/users/fadikurdi","html_url":"https://github.com/fadikurdi","followers_url":"https://api.github.com/users/fadikurdi/followers","following_url":"https://api.github.com/users/fadikurdi/following{/other_user}","gists_url":"https://api.github.com/users/fadikurdi/gists{/gist_id}","starred_url":"https://api.github.com/users/fadikurdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fadikurdi/subscriptions","organizations_url":"https://api.github.com/users/fadikurdi/orgs","repos_url":"https://api.github.com/users/fadikurdi/repos","events_url":"https://api.github.com/users/fadikurdi/events{/privacy}","received_events_url":"https://api.github.com/users/fadikurdi/received_events","type":"User","site_admin":false},"repo":{"id":123429722,"name":"Node.js","full_name":"fadikurdi/Node.js","owner":{"login":"fadikurdi","id":29713475,"avatar_url":"https://avatars0.githubusercontent.com/u/29713475?v=4","gravatar_id":"","url":"https://api.github.com/users/fadikurdi","html_url":"https://github.com/fadikurdi","followers_url":"https://api.github.com/users/fadikurdi/followers","following_url":"https://api.github.com/users/fadikurdi/following{/other_user}","gists_url":"https://api.github.com/users/fadikurdi/gists{/gist_id}","starred_url":"https://api.github.com/users/fadikurdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fadikurdi/subscriptions","organizations_url":"https://api.github.com/users/fadikurdi/orgs","repos_url":"https://api.github.com/users/fadikurdi/repos","events_url":"https://api.github.com/users/fadikurdi/events{/privacy}","received_events_url":"https://api.github.com/users/fadikurdi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fadikurdi/Node.js","description":"NodeJS 101 course","fork":true,"url":"https://api.github.com/repos/fadikurdi/Node.js","forks_url":"https://api.github.com/repos/fadikurdi/Node.js/forks","keys_url":"https://api.github.com/repos/fadikurdi/Node.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fadikurdi/Node.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fadikurdi/Node.js/teams","hooks_url":"https://api.github.com/repos/fadikurdi/Node.js/hooks","issue_events_url":"https://api.github.com/repos/fadikurdi/Node.js/issues/events{/number}","events_url":"https://api.github.com/repos/fadikurdi/Node.js/events","assignees_url":"https://api.github.com/repos/fadikurdi/Node.js/assignees{/user}","branches_url":"https://api.github.com/repos/fadikurdi/Node.js/branches{/branch}","tags_url":"https://api.github.com/repos/fadikurdi/Node.js/tags","blobs_url":"https://api.github.com/repos/fadikurdi/Node.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fadikurdi/Node.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fadikurdi/Node.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/fadikurdi/Node.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fadikurdi/Node.js/statuses/{sha}","languages_url":"https://api.github.com/repos/fadikurdi/Node.js/languages","stargazers_url":"https://api.github.com/repos/fadikurdi/Node.js/stargazers","contributors_url":"https://api.github.com/repos/fadikurdi/Node.js/contributors","subscribers_url":"https://api.github.com/repos/fadikurdi/Node.js/subscribers","subscription_url":"https://api.github.com/repos/fadikurdi/Node.js/subscription","commits_url":"https://api.github.com/repos/fadikurdi/Node.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/fadikurdi/Node.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/fadikurdi/Node.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/fadikurdi/Node.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/fadikurdi/Node.js/contents/{+path}","compare_url":"https://api.github.com/repos/fadikurdi/Node.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fadikurdi/Node.js/merges","archive_url":"https://api.github.com/repos/fadikurdi/Node.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fadikurdi/Node.js/downloads","issues_url":"https://api.github.com/repos/fadikurdi/Node.js/issues{/number}","pulls_url":"https://api.github.com/repos/fadikurdi/Node.js/pulls{/number}","milestones_url":"https://api.github.com/repos/fadikurdi/Node.js/milestones{/number}","notifications_url":"https://api.github.com/repos/fadikurdi/Node.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fadikurdi/Node.js/labels{/name}","releases_url":"https://api.github.com/repos/fadikurdi/Node.js/releases{/id}","deployments_url":"https://api.github.com/repos/fadikurdi/Node.js/deployments","created_at":"2018-03-01T12:06:00Z","updated_at":"2018-03-01T12:06:01Z","pushed_at":"2018-03-01T15:47:02Z","git_url":"git://github.com/fadikurdi/Node.js.git","ssh_url":"git@github.com:fadikurdi/Node.js.git","clone_url":"https://github.com/fadikurdi/Node.js.git","svn_url":"https://github.com/fadikurdi/Node.js","homepage":null,"size":643,"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":"HackYourFuture:master","ref":"master","sha":"d5fd45a57a71ba5959734f29c361927ad35ba54d","user":{"login":"HackYourFuture","id":20858568,"avatar_url":"https://avatars2.githubusercontent.com/u/20858568?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture","html_url":"https://github.com/HackYourFuture","followers_url":"https://api.github.com/users/HackYourFuture/followers","following_url":"https://api.github.com/users/HackYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture/orgs","repos_url":"https://api.github.com/users/HackYourFuture/repos","events_url":"https://api.github.com/users/HackYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture/received_events","type":"Organization","site_admin":false},"repo":{"id":68906713,"name":"Node.js","full_name":"HackYourFuture/Node.js","owner":{"login":"HackYourFuture","id":20858568,"avatar_url":"https://avatars2.githubusercontent.com/u/20858568?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture","html_url":"https://github.com/HackYourFuture","followers_url":"https://api.github.com/users/HackYourFuture/followers","following_url":"https://api.github.com/users/HackYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture/orgs","repos_url":"https://api.github.com/users/HackYourFuture/repos","events_url":"https://api.github.com/users/HackYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HackYourFuture/Node.js","description":"NodeJS 101 course","fork":false,"url":"https://api.github.com/repos/HackYourFuture/Node.js","forks_url":"https://api.github.com/repos/HackYourFuture/Node.js/forks","keys_url":"https://api.github.com/repos/HackYourFuture/Node.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HackYourFuture/Node.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HackYourFuture/Node.js/teams","hooks_url":"https://api.github.com/repos/HackYourFuture/Node.js/hooks","issue_events_url":"https://api.github.com/repos/HackYourFuture/Node.js/issues/events{/number}","events_url":"https://api.github.com/repos/HackYourFuture/Node.js/events","assignees_url":"https://api.github.com/repos/HackYourFuture/Node.js/assignees{/user}","branches_url":"https://api.github.com/repos/HackYourFuture/Node.js/branches{/branch}","tags_url":"https://api.github.com/repos/HackYourFuture/Node.js/tags","blobs_url":"https://api.github.com/repos/HackYourFuture/Node.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HackYourFuture/Node.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HackYourFuture/Node.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/HackYourFuture/Node.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HackYourFuture/Node.js/statuses/{sha}","languages_url":"https://api.github.com/repos/HackYourFuture/Node.js/languages","stargazers_url":"https://api.github.com/repos/HackYourFuture/Node.js/stargazers","contributors_url":"https://api.github.com/repos/HackYourFuture/Node.js/contributors","subscribers_url":"https://api.github.com/repos/HackYourFuture/Node.js/subscribers","subscription_url":"https://api.github.com/repos/HackYourFuture/Node.js/subscription","commits_url":"https://api.github.com/repos/HackYourFuture/Node.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/HackYourFuture/Node.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/HackYourFuture/Node.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/HackYourFuture/Node.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/HackYourFuture/Node.js/contents/{+path}","compare_url":"https://api.github.com/repos/HackYourFuture/Node.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HackYourFuture/Node.js/merges","archive_url":"https://api.github.com/repos/HackYourFuture/Node.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HackYourFuture/Node.js/downloads","issues_url":"https://api.github.com/repos/HackYourFuture/Node.js/issues{/number}","pulls_url":"https://api.github.com/repos/HackYourFuture/Node.js/pulls{/number}","milestones_url":"https://api.github.com/repos/HackYourFuture/Node.js/milestones{/number}","notifications_url":"https://api.github.com/repos/HackYourFuture/Node.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HackYourFuture/Node.js/labels{/name}","releases_url":"https://api.github.com/repos/HackYourFuture/Node.js/releases{/id}","deployments_url":"https://api.github.com/repos/HackYourFuture/Node.js/deployments","created_at":"2016-09-22T09:36:44Z","updated_at":"2018-03-02T07:23:21Z","pushed_at":"2018-03-03T17:25:38Z","git_url":"git://github.com/HackYourFuture/Node.js.git","ssh_url":"git@github.com:HackYourFuture/Node.js.git","clone_url":"https://github.com/HackYourFuture/Node.js.git","svn_url":"https://github.com/HackYourFuture/Node.js","homepage":null,"size":635,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":90,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":90,"open_issues":12,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/92"},"html":{"href":"https://github.com/HackYourFuture/Node.js/pull/92"},"issue":{"href":"https://api.github.com/repos/HackYourFuture/Node.js/issues/92"},"comments":{"href":"https://api.github.com/repos/HackYourFuture/Node.js/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HackYourFuture/Node.js/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/HackYourFuture/Node.js/statuses/42686d64be7fc71a948d8e0c99e039a4d7ef5818"}},"author_association":"NONE"}}
{"actor":{"display_login":"GeorgeSapkin"}}