{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/comments/90658706","pull_request_review_id":11176314,"id":90658706,"diff_hunk":"@@ -0,0 +1,16 @@\n+\n+const renderLives = (total, empty, liveFull, liveEmpty) => {\n+  let lives = [];\n+\n+  for (let i = 0; i < total; i++) {\n+    lives[i] = liveFull;\n+  }\n+\n+  for (let i = 0; i < empty; i++) {\n+    lives[i] = liveEmpty;\n+  }","path":"js/modules/renderLives.js","position":11,"original_position":11,"commit_id":"7106d1050f9803dd35cd31c7c2581889fefa6241","original_commit_id":"7106d1050f9803dd35cd31c7c2581889fefa6241","user":{"login":"aralot","id":397198,"avatar_url":"https://avatars.githubusercontent.com/u/397198?v=3","gravatar_id":"","url":"https://api.github.com/users/aralot","html_url":"https://github.com/aralot","followers_url":"https://api.github.com/users/aralot/followers","following_url":"https://api.github.com/users/aralot/following{/other_user}","gists_url":"https://api.github.com/users/aralot/gists{/gist_id}","starred_url":"https://api.github.com/users/aralot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aralot/subscriptions","organizations_url":"https://api.github.com/users/aralot/orgs","repos_url":"https://api.github.com/users/aralot/repos","events_url":"https://api.github.com/users/aralot/events{/privacy}","received_events_url":"https://api.github.com/users/aralot/received_events","type":"User","site_admin":false},"body":"тут вроде можно без двух циклов обойтись:\r\n\r\n```\r\nfor (let i = 0; i < total; i++) {\r\n  if (i < empty) {\r\n   lives[i] = liveEmpty;\r\n  } else {\r\n   lives[i] = liveFull;\r\n  }\r\n}\r\n```","created_at":"2016-12-02T15:15:17Z","updated_at":"2016-12-02T15:16:01Z","html_url":"https://github.com/htmlacademy-ecmascript/5890-pixel-hunter/pull/5#discussion_r90658706","pull_request_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/comments/90658706"},"html":{"href":"https://github.com/htmlacademy-ecmascript/5890-pixel-hunter/pull/5#discussion_r90658706"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/5","id":96198204,"html_url":"https://github.com/htmlacademy-ecmascript/5890-pixel-hunter/pull/5","diff_url":"https://github.com/htmlacademy-ecmascript/5890-pixel-hunter/pull/5.diff","patch_url":"https://github.com/htmlacademy-ecmascript/5890-pixel-hunter/pull/5.patch","issue_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/issues/5","number":5,"state":"open","locked":false,"title":"Разделяй и властвуй","user":{"login":"vibecode","id":5814935,"avatar_url":"https://avatars.githubusercontent.com/u/5814935?v=3","gravatar_id":"","url":"https://api.github.com/users/vibecode","html_url":"https://github.com/vibecode","followers_url":"https://api.github.com/users/vibecode/followers","following_url":"https://api.github.com/users/vibecode/following{/other_user}","gists_url":"https://api.github.com/users/vibecode/gists{/gist_id}","starred_url":"https://api.github.com/users/vibecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vibecode/subscriptions","organizations_url":"https://api.github.com/users/vibecode/orgs","repos_url":"https://api.github.com/users/vibecode/repos","events_url":"https://api.github.com/users/vibecode/events{/privacy}","received_events_url":"https://api.github.com/users/vibecode/received_events","type":"User","site_admin":false},"body":"Тест ругается на кавычки, не пойму че ему надо.","created_at":"2016-12-02T00:18:17Z","updated_at":"2016-12-02T15:16:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f98455a543cce89490a51253340e6d3983f97fb1","assignee":{"login":"aralot","id":397198,"avatar_url":"https://avatars.githubusercontent.com/u/397198?v=3","gravatar_id":"","url":"https://api.github.com/users/aralot","html_url":"https://github.com/aralot","followers_url":"https://api.github.com/users/aralot/followers","following_url":"https://api.github.com/users/aralot/following{/other_user}","gists_url":"https://api.github.com/users/aralot/gists{/gist_id}","starred_url":"https://api.github.com/users/aralot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aralot/subscriptions","organizations_url":"https://api.github.com/users/aralot/orgs","repos_url":"https://api.github.com/users/aralot/repos","events_url":"https://api.github.com/users/aralot/events{/privacy}","received_events_url":"https://api.github.com/users/aralot/received_events","type":"User","site_admin":false},"assignees":[{"login":"aralot","id":397198,"avatar_url":"https://avatars.githubusercontent.com/u/397198?v=3","gravatar_id":"","url":"https://api.github.com/users/aralot","html_url":"https://github.com/aralot","followers_url":"https://api.github.com/users/aralot/followers","following_url":"https://api.github.com/users/aralot/following{/other_user}","gists_url":"https://api.github.com/users/aralot/gists{/gist_id}","starred_url":"https://api.github.com/users/aralot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aralot/subscriptions","organizations_url":"https://api.github.com/users/aralot/orgs","repos_url":"https://api.github.com/users/aralot/repos","events_url":"https://api.github.com/users/aralot/events{/privacy}","received_events_url":"https://api.github.com/users/aralot/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/5/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/5/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/issues/5/comments","statuses_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/statuses/7106d1050f9803dd35cd31c7c2581889fefa6241","head":{"label":"vibecode:module3-task1","ref":"module3-task1","sha":"7106d1050f9803dd35cd31c7c2581889fefa6241","user":{"login":"vibecode","id":5814935,"avatar_url":"https://avatars.githubusercontent.com/u/5814935?v=3","gravatar_id":"","url":"https://api.github.com/users/vibecode","html_url":"https://github.com/vibecode","followers_url":"https://api.github.com/users/vibecode/followers","following_url":"https://api.github.com/users/vibecode/following{/other_user}","gists_url":"https://api.github.com/users/vibecode/gists{/gist_id}","starred_url":"https://api.github.com/users/vibecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vibecode/subscriptions","organizations_url":"https://api.github.com/users/vibecode/orgs","repos_url":"https://api.github.com/users/vibecode/repos","events_url":"https://api.github.com/users/vibecode/events{/privacy}","received_events_url":"https://api.github.com/users/vibecode/received_events","type":"User","site_admin":false},"repo":{"id":73860856,"name":"5890-pixel-hunter","full_name":"vibecode/5890-pixel-hunter","owner":{"login":"vibecode","id":5814935,"avatar_url":"https://avatars.githubusercontent.com/u/5814935?v=3","gravatar_id":"","url":"https://api.github.com/users/vibecode","html_url":"https://github.com/vibecode","followers_url":"https://api.github.com/users/vibecode/followers","following_url":"https://api.github.com/users/vibecode/following{/other_user}","gists_url":"https://api.github.com/users/vibecode/gists{/gist_id}","starred_url":"https://api.github.com/users/vibecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vibecode/subscriptions","organizations_url":"https://api.github.com/users/vibecode/orgs","repos_url":"https://api.github.com/users/vibecode/repos","events_url":"https://api.github.com/users/vibecode/events{/privacy}","received_events_url":"https://api.github.com/users/vibecode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vibecode/5890-pixel-hunter","description":"Станислав Овчаров","fork":true,"url":"https://api.github.com/repos/vibecode/5890-pixel-hunter","forks_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/forks","keys_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/teams","hooks_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/hooks","issue_events_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/issues/events{/number}","events_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/events","assignees_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/assignees{/user}","branches_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/branches{/branch}","tags_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/tags","blobs_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/statuses/{sha}","languages_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/languages","stargazers_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/stargazers","contributors_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/contributors","subscribers_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/subscribers","subscription_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/subscription","commits_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/contents/{+path}","compare_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/merges","archive_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/downloads","issues_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/issues{/number}","pulls_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/pulls{/number}","milestones_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/milestones{/number}","notifications_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/labels{/name}","releases_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/releases{/id}","deployments_url":"https://api.github.com/repos/vibecode/5890-pixel-hunter/deployments","created_at":"2016-11-15T22:28:03Z","updated_at":"2016-11-21T22:50:34Z","pushed_at":"2016-12-02T00:12:54Z","git_url":"git://github.com/vibecode/5890-pixel-hunter.git","ssh_url":"git@github.com:vibecode/5890-pixel-hunter.git","clone_url":"https://github.com/vibecode/5890-pixel-hunter.git","svn_url":"https://github.com/vibecode/5890-pixel-hunter","homepage":null,"size":575,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"htmlacademy-ecmascript:master","ref":"master","sha":"ac8520bcbaf13547645659983afaac44473cee8d","user":{"login":"htmlacademy-ecmascript","id":22890904,"avatar_url":"https://avatars.githubusercontent.com/u/22890904?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-ecmascript","html_url":"https://github.com/htmlacademy-ecmascript","followers_url":"https://api.github.com/users/htmlacademy-ecmascript/followers","following_url":"https://api.github.com/users/htmlacademy-ecmascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-ecmascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-ecmascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-ecmascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-ecmascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-ecmascript/repos","events_url":"https://api.github.com/users/htmlacademy-ecmascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-ecmascript/received_events","type":"Organization","site_admin":false},"repo":{"id":73860819,"name":"5890-pixel-hunter","full_name":"htmlacademy-ecmascript/5890-pixel-hunter","owner":{"login":"htmlacademy-ecmascript","id":22890904,"avatar_url":"https://avatars.githubusercontent.com/u/22890904?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-ecmascript","html_url":"https://github.com/htmlacademy-ecmascript","followers_url":"https://api.github.com/users/htmlacademy-ecmascript/followers","following_url":"https://api.github.com/users/htmlacademy-ecmascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-ecmascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-ecmascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-ecmascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-ecmascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-ecmascript/repos","events_url":"https://api.github.com/users/htmlacademy-ecmascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-ecmascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-ecmascript/5890-pixel-hunter","description":"Станислав Овчаров","fork":false,"url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter","forks_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/forks","keys_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/teams","hooks_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/events","assignees_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/tags","blobs_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/subscription","commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/merges","archive_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/downloads","issues_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/deployments","created_at":"2016-11-15T22:27:40Z","updated_at":"2016-11-21T22:39:46Z","pushed_at":"2016-12-02T00:18:17Z","git_url":"git://github.com/htmlacademy-ecmascript/5890-pixel-hunter.git","ssh_url":"git@github.com:htmlacademy-ecmascript/5890-pixel-hunter.git","clone_url":"https://github.com/htmlacademy-ecmascript/5890-pixel-hunter.git","svn_url":"https://github.com/htmlacademy-ecmascript/5890-pixel-hunter","homepage":"https://github.com/vibecode/5890-pixel-hunter","size":569,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/5"},"html":{"href":"https://github.com/htmlacademy-ecmascript/5890-pixel-hunter/pull/5"},"issue":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/issues/5"},"comments":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/5890-pixel-hunter/statuses/7106d1050f9803dd35cd31c7c2581889fefa6241"}}}}
{"actor":{"display_login":"aralot"}}