{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls/comments/194137453","pull_request_review_id":127259987,"id":194137453,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDEzNzQ1Mw==","diff_hunk":"@@ -0,0 +1,62 @@\n+'use strict';\n+\n+var NAMES = ['Иван', 'Хуан Себастьян', 'Мария', 'Кристоф', 'Виктор', 'Юлия', 'Люпита', 'Вашингтон'];\n+var SURNAMES = ['да Марья', 'Верон', 'Мирабелла', 'Вальц', 'Онопко', 'Топольницкая', 'Нионго', 'Ирвинг'];\n+var COAT_COLORS = ['rgb(101, 137, 164)', 'rgb(241, 43, 107)', 'rgb(146, 100, 161)', 'rgb(56, 159, 117)', 'rgb(215, 210, 55)'];\n+var EYES_COLORS = ['rgb(0,0,0)', 'rgb(255,0,0)', 'rgb(0,0,255)', 'rgb(255,255,0)', 'rgb(0,255,0)'];\n+var WIZARD_NUMBER = 4;\n+\n+var getWizards = function (names, surnames, coats, eyes) {\n+  var wizards = [];\n+\n+  var getRandomIndex = function (params) {\n+    return Math.floor(Math.random() * (params.length - 1));\n+  };\n+\n+  for (var i = 0; i < WIZARD_NUMBER; i++) {\n+    var wizardParam = {};\n+    var randomNameIndex = getRandomIndex(names);\n+    var randomSurnameIndex = getRandomIndex(surnames);\n+    var randomCoatIndex = getRandomIndex(coats);\n+    var randomEyeIndex = getRandomIndex(eyes);\n+\n+    wizardParam.name = names[randomNameIndex] + ' ' + surnames[randomSurnameIndex];\n+    wizardParam.coatColor = coats[randomCoatIndex];\n+    wizardParam.eyesColor = eyes[randomEyeIndex];\n+    wizards[i] = wizardParam;","path":"js/setup.js","position":26,"original_position":26,"commit_id":"d5edc43a1473ed31b77e42140cea250f9c0adabd","original_commit_id":"d5edc43a1473ed31b77e42140cea250f9c0adabd","user":{"login":"fyvfyv","id":3251438,"node_id":"MDQ6VXNlcjMyNTE0Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"body":"`wizards.push(wizardParam)`","created_at":"2018-06-08T18:01:26Z","updated_at":"2018-06-08T18:05:47Z","html_url":"https://github.com/htmlacademy-javascript/424721-code-and-magick/pull/3#discussion_r194137453","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls/3","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls/comments/194137453"},"html":{"href":"https://github.com/htmlacademy-javascript/424721-code-and-magick/pull/3#discussion_r194137453"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls/3","id":193662362,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzNjYyMzYy","html_url":"https://github.com/htmlacademy-javascript/424721-code-and-magick/pull/3","diff_url":"https://github.com/htmlacademy-javascript/424721-code-and-magick/pull/3.diff","patch_url":"https://github.com/htmlacademy-javascript/424721-code-and-magick/pull/3.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/issues/3","number":3,"state":"open","locked":false,"title":"Учебный проект: нас орда","user":{"login":"fluxet","id":27204697,"node_id":"MDQ6VXNlcjI3MjA0Njk3","avatar_url":"https://avatars1.githubusercontent.com/u/27204697?v=4","gravatar_id":"","url":"https://api.github.com/users/fluxet","html_url":"https://github.com/fluxet","followers_url":"https://api.github.com/users/fluxet/followers","following_url":"https://api.github.com/users/fluxet/following{/other_user}","gists_url":"https://api.github.com/users/fluxet/gists{/gist_id}","starred_url":"https://api.github.com/users/fluxet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluxet/subscriptions","organizations_url":"https://api.github.com/users/fluxet/orgs","repos_url":"https://api.github.com/users/fluxet/repos","events_url":"https://api.github.com/users/fluxet/events{/privacy}","received_events_url":"https://api.github.com/users/fluxet/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Учебный проект: нас орда](https://up.htmlacademy.ru/javascript/14/user/424721/tasks/12)\n\n:boom: https://htmlacademy-javascript.github.io/424721-code-and-magick/3/","created_at":"2018-06-08T16:19:11Z","updated_at":"2018-06-08T18:05:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"280b1d8305a76c5c9fbc7687875076700e439181","assignee":{"login":"fyvfyv","id":3251438,"node_id":"MDQ6VXNlcjMyNTE0Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"assignees":[{"login":"fyvfyv","id":3251438,"node_id":"MDQ6VXNlcjMyNTE0Mzg=","avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls/3/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls/3/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/issues/3/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/statuses/d5edc43a1473ed31b77e42140cea250f9c0adabd","head":{"label":"fluxet:module3-task1","ref":"module3-task1","sha":"d5edc43a1473ed31b77e42140cea250f9c0adabd","user":{"login":"fluxet","id":27204697,"node_id":"MDQ6VXNlcjI3MjA0Njk3","avatar_url":"https://avatars1.githubusercontent.com/u/27204697?v=4","gravatar_id":"","url":"https://api.github.com/users/fluxet","html_url":"https://github.com/fluxet","followers_url":"https://api.github.com/users/fluxet/followers","following_url":"https://api.github.com/users/fluxet/following{/other_user}","gists_url":"https://api.github.com/users/fluxet/gists{/gist_id}","starred_url":"https://api.github.com/users/fluxet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluxet/subscriptions","organizations_url":"https://api.github.com/users/fluxet/orgs","repos_url":"https://api.github.com/users/fluxet/repos","events_url":"https://api.github.com/users/fluxet/events{/privacy}","received_events_url":"https://api.github.com/users/fluxet/received_events","type":"User","site_admin":false},"repo":{"id":135363136,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzNjMxMzY=","name":"424721-code-and-magick","full_name":"fluxet/424721-code-and-magick","owner":{"login":"fluxet","id":27204697,"node_id":"MDQ6VXNlcjI3MjA0Njk3","avatar_url":"https://avatars1.githubusercontent.com/u/27204697?v=4","gravatar_id":"","url":"https://api.github.com/users/fluxet","html_url":"https://github.com/fluxet","followers_url":"https://api.github.com/users/fluxet/followers","following_url":"https://api.github.com/users/fluxet/following{/other_user}","gists_url":"https://api.github.com/users/fluxet/gists{/gist_id}","starred_url":"https://api.github.com/users/fluxet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fluxet/subscriptions","organizations_url":"https://api.github.com/users/fluxet/orgs","repos_url":"https://api.github.com/users/fluxet/repos","events_url":"https://api.github.com/users/fluxet/events{/privacy}","received_events_url":"https://api.github.com/users/fluxet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fluxet/424721-code-and-magick","description":"Антон Древетняк","fork":true,"url":"https://api.github.com/repos/fluxet/424721-code-and-magick","forks_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/forks","keys_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/teams","hooks_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/events","assignees_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/tags","blobs_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/subscription","commits_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/merges","archive_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/downloads","issues_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/fluxet/424721-code-and-magick/deployments","created_at":"2018-05-29T23:30:41Z","updated_at":"2018-06-08T16:00:01Z","pushed_at":"2018-06-08T16:27:24Z","git_url":"git://github.com/fluxet/424721-code-and-magick.git","ssh_url":"git@github.com:fluxet/424721-code-and-magick.git","clone_url":"https://github.com/fluxet/424721-code-and-magick.git","svn_url":"https://github.com/fluxet/424721-code-and-magick","homepage":null,"size":1094,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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-javascript:master","ref":"master","sha":"e5bc35718f0e8b316d8383b9c4d75ee1d3642abb","user":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":135363095,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzNjMwOTU=","name":"424721-code-and-magick","full_name":"htmlacademy-javascript/424721-code-and-magick","owner":{"login":"htmlacademy-javascript","id":14179712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc5NzEy","avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/424721-code-and-magick","description":"Антон Древетняк","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/deployments","created_at":"2018-05-29T23:30:13Z","updated_at":"2018-06-04T21:50:06Z","pushed_at":"2018-06-08T17:13:28Z","git_url":"git://github.com/htmlacademy-javascript/424721-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/424721-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/424721-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/424721-code-and-magick","homepage":"https://github.com/fluxet/424721-code-and-magick","size":1094,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"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-javascript/424721-code-and-magick/pulls/3"},"html":{"href":"https://github.com/htmlacademy-javascript/424721-code-and-magick/pull/3"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/issues/3"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/424721-code-and-magick/statuses/d5edc43a1473ed31b77e42140cea250f9c0adabd"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"fyvfyv"}}