{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/comments/166396810","pull_request_review_id":94452202,"id":166396810,"diff_hunk":"@@ -0,0 +1,47 @@\n+const AUTHOR_NAME = 'Дмитрий';\n+const PROJECT_NAME = '«Кексобукинг»';\n+\n+const Command = {\n+  VERSION: '--version',\n+  HELP: '--help'\n+};\n+\n+const args = process.argv.slice(2);\n+const hasArgs = args.length !== 0;\n+\n+if (hasArgs) {\n+  executeCommand(args[0]);\n+} else {\n+  printMeta();\n+}\n+\n+function executeCommand(command) {\n+  switch (command) {\n+    case (Command.VERSION):\n+      console.log('v0.0.1');","path":"index.js","position":21,"original_position":21,"commit_id":"f2f17d0250f0c30b8e5dd95204961ec750be9255","original_commit_id":"f2f17d0250f0c30b8e5dd95204961ec750be9255","user":{"login":"Delagen","id":783335,"avatar_url":"https://avatars2.githubusercontent.com/u/783335?v=4","gravatar_id":"","url":"https://api.github.com/users/Delagen","html_url":"https://github.com/Delagen","followers_url":"https://api.github.com/users/Delagen/followers","following_url":"https://api.github.com/users/Delagen/following{/other_user}","gists_url":"https://api.github.com/users/Delagen/gists{/gist_id}","starred_url":"https://api.github.com/users/Delagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Delagen/subscriptions","organizations_url":"https://api.github.com/users/Delagen/orgs","repos_url":"https://api.github.com/users/Delagen/repos","events_url":"https://api.github.com/users/Delagen/events{/privacy}","received_events_url":"https://api.github.com/users/Delagen/received_events","type":"User","site_admin":false},"body":"Ну и на будущее, вскоре будет введен критерий B13 в основном контролируемый ESLint, чтобы все строки были однообразно определены, так что привыкаем к шаблонным строкам там, где это вроде бы не требуется.\r\nЭто решение еще с продвинутого JavaScript","created_at":"2018-02-06T18:24:11Z","updated_at":"2018-02-06T18:24:11Z","html_url":"https://github.com/htmlacademy-nodejs/132535-keksobooking/pull/2#discussion_r166396810","pull_request_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/comments/166396810"},"html":{"href":"https://github.com/htmlacademy-nodejs/132535-keksobooking/pull/2#discussion_r166396810"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/2","id":167484434,"html_url":"https://github.com/htmlacademy-nodejs/132535-keksobooking/pull/2","diff_url":"https://github.com/htmlacademy-nodejs/132535-keksobooking/pull/2.diff","patch_url":"https://github.com/htmlacademy-nodejs/132535-keksobooking/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/issues/2","number":2,"state":"open","locked":false,"title":"Хьюстон, у нас проблемы","user":{"login":"Ronuar","id":20562008,"avatar_url":"https://avatars1.githubusercontent.com/u/20562008?v=4","gravatar_id":"","url":"https://api.github.com/users/Ronuar","html_url":"https://github.com/Ronuar","followers_url":"https://api.github.com/users/Ronuar/followers","following_url":"https://api.github.com/users/Ronuar/following{/other_user}","gists_url":"https://api.github.com/users/Ronuar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronuar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronuar/subscriptions","organizations_url":"https://api.github.com/users/Ronuar/orgs","repos_url":"https://api.github.com/users/Ronuar/repos","events_url":"https://api.github.com/users/Ronuar/events{/privacy}","received_events_url":"https://api.github.com/users/Ronuar/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Хьюстон, у нас проблемы](https://up.htmlacademy.ru/nodejs/1/user/132535/tasks/3)","created_at":"2018-02-06T17:48:47Z","updated_at":"2018-02-06T18:24:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62b797808297da6094236f85b9d3e1e3198615a6","assignee":{"login":"Delagen","id":783335,"avatar_url":"https://avatars2.githubusercontent.com/u/783335?v=4","gravatar_id":"","url":"https://api.github.com/users/Delagen","html_url":"https://github.com/Delagen","followers_url":"https://api.github.com/users/Delagen/followers","following_url":"https://api.github.com/users/Delagen/following{/other_user}","gists_url":"https://api.github.com/users/Delagen/gists{/gist_id}","starred_url":"https://api.github.com/users/Delagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Delagen/subscriptions","organizations_url":"https://api.github.com/users/Delagen/orgs","repos_url":"https://api.github.com/users/Delagen/repos","events_url":"https://api.github.com/users/Delagen/events{/privacy}","received_events_url":"https://api.github.com/users/Delagen/received_events","type":"User","site_admin":false},"assignees":[{"login":"Delagen","id":783335,"avatar_url":"https://avatars2.githubusercontent.com/u/783335?v=4","gravatar_id":"","url":"https://api.github.com/users/Delagen","html_url":"https://github.com/Delagen","followers_url":"https://api.github.com/users/Delagen/followers","following_url":"https://api.github.com/users/Delagen/following{/other_user}","gists_url":"https://api.github.com/users/Delagen/gists{/gist_id}","starred_url":"https://api.github.com/users/Delagen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Delagen/subscriptions","organizations_url":"https://api.github.com/users/Delagen/orgs","repos_url":"https://api.github.com/users/Delagen/repos","events_url":"https://api.github.com/users/Delagen/events{/privacy}","received_events_url":"https://api.github.com/users/Delagen/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/statuses/f2f17d0250f0c30b8e5dd95204961ec750be9255","head":{"label":"Ronuar:module1-task2","ref":"module1-task2","sha":"f2f17d0250f0c30b8e5dd95204961ec750be9255","user":{"login":"Ronuar","id":20562008,"avatar_url":"https://avatars1.githubusercontent.com/u/20562008?v=4","gravatar_id":"","url":"https://api.github.com/users/Ronuar","html_url":"https://github.com/Ronuar","followers_url":"https://api.github.com/users/Ronuar/followers","following_url":"https://api.github.com/users/Ronuar/following{/other_user}","gists_url":"https://api.github.com/users/Ronuar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronuar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronuar/subscriptions","organizations_url":"https://api.github.com/users/Ronuar/orgs","repos_url":"https://api.github.com/users/Ronuar/repos","events_url":"https://api.github.com/users/Ronuar/events{/privacy}","received_events_url":"https://api.github.com/users/Ronuar/received_events","type":"User","site_admin":false},"repo":{"id":120427461,"name":"132535-keksobooking","full_name":"Ronuar/132535-keksobooking","owner":{"login":"Ronuar","id":20562008,"avatar_url":"https://avatars1.githubusercontent.com/u/20562008?v=4","gravatar_id":"","url":"https://api.github.com/users/Ronuar","html_url":"https://github.com/Ronuar","followers_url":"https://api.github.com/users/Ronuar/followers","following_url":"https://api.github.com/users/Ronuar/following{/other_user}","gists_url":"https://api.github.com/users/Ronuar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronuar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronuar/subscriptions","organizations_url":"https://api.github.com/users/Ronuar/orgs","repos_url":"https://api.github.com/users/Ronuar/repos","events_url":"https://api.github.com/users/Ronuar/events{/privacy}","received_events_url":"https://api.github.com/users/Ronuar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ronuar/132535-keksobooking","description":"Дмитрий Новиков","fork":true,"url":"https://api.github.com/repos/Ronuar/132535-keksobooking","forks_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/forks","keys_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/teams","hooks_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/events","assignees_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/tags","blobs_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/languages","stargazers_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/subscription","commits_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/merges","archive_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/downloads","issues_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/Ronuar/132535-keksobooking/deployments","created_at":"2018-02-06T08:55:01Z","updated_at":"2018-02-05T18:35:05Z","pushed_at":"2018-02-06T17:51:22Z","git_url":"git://github.com/Ronuar/132535-keksobooking.git","ssh_url":"git@github.com:Ronuar/132535-keksobooking.git","clone_url":"https://github.com/Ronuar/132535-keksobooking.git","svn_url":"https://github.com/Ronuar/132535-keksobooking","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"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":"htmlacademy-nodejs:master","ref":"master","sha":"e6caaa76d3978b58150587db9af55c6000863f72","user":{"login":"htmlacademy-nodejs","id":23528374,"avatar_url":"https://avatars0.githubusercontent.com/u/23528374?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-nodejs","html_url":"https://github.com/htmlacademy-nodejs","followers_url":"https://api.github.com/users/htmlacademy-nodejs/followers","following_url":"https://api.github.com/users/htmlacademy-nodejs/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-nodejs/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-nodejs/orgs","repos_url":"https://api.github.com/users/htmlacademy-nodejs/repos","events_url":"https://api.github.com/users/htmlacademy-nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-nodejs/received_events","type":"Organization","site_admin":false},"repo":{"id":120345142,"name":"132535-keksobooking","full_name":"htmlacademy-nodejs/132535-keksobooking","owner":{"login":"htmlacademy-nodejs","id":23528374,"avatar_url":"https://avatars0.githubusercontent.com/u/23528374?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-nodejs","html_url":"https://github.com/htmlacademy-nodejs","followers_url":"https://api.github.com/users/htmlacademy-nodejs/followers","following_url":"https://api.github.com/users/htmlacademy-nodejs/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-nodejs/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-nodejs/orgs","repos_url":"https://api.github.com/users/htmlacademy-nodejs/repos","events_url":"https://api.github.com/users/htmlacademy-nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-nodejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-nodejs/132535-keksobooking","description":"Дмитрий Новиков","fork":false,"url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/deployments","created_at":"2018-02-05T18:35:05Z","updated_at":"2018-02-06T09:03:58Z","pushed_at":"2018-02-06T17:51:23Z","git_url":"git://github.com/htmlacademy-nodejs/132535-keksobooking.git","ssh_url":"git@github.com:htmlacademy-nodejs/132535-keksobooking.git","clone_url":"https://github.com/htmlacademy-nodejs/132535-keksobooking.git","svn_url":"https://github.com/htmlacademy-nodejs/132535-keksobooking","homepage":"https://github.com/Ronuar/132535-keksobooking","size":3,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/2"},"html":{"href":"https://github.com/htmlacademy-nodejs/132535-keksobooking/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-nodejs/132535-keksobooking/statuses/f2f17d0250f0c30b8e5dd95204961ec750be9255"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Delagen"}}