{"action":"created","comment":{"url":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/comments/89702059","pull_request_review_id":10240258,"id":89702059,"diff_hunk":"@@ -0,0 +1,33 @@\n+let getCities = function (url) {\n+    return new Promise(function (resolve, reject) {\n+        var req = new XMLHttpRequest();\n+        req.open('GET', url);\n+        req.onload = function () {\n+            console.log(req.response);\n+            if (req.status == 200) {\n+                resolve(req.response);\n+            }\n+            else {\n+                reject(req.statusText);\n+            }\n+        };\n+        req.send();\n+    });\n+}\n+\n+let url = 'https://raw.githubusercontent.com/smelukov/citiesTest/master/cities.json';\n+\n+getCities(url).then(function (res) {\n+    let resList = JSON.parse(res) || [],\n+        cityListElem = document.querySelector('.cities');\n+\n+    resList = resList.map(function (item) {\n+        return item['name'];\n+    }).sort();\n+\n+    for (let city of resList) {\n+        let cityElem = document.createElement('li');\n+        cityElem.textContent = city;\n+        cityListElem.appendChild(cityElem);","path":"hm6/02/script.js","position":null,"original_position":31,"commit_id":"da5b567349f330a9995bf9c1cbf64bee878362e3","original_commit_id":"7981f7ac0d5abcf70c0f49fa05c905960c2e7027","user":{"login":"Cry0g3n","id":3369506,"avatar_url":"https://avatars.githubusercontent.com/u/3369506?v=3","gravatar_id":"","url":"https://api.github.com/users/Cry0g3n","html_url":"https://github.com/Cry0g3n","followers_url":"https://api.github.com/users/Cry0g3n/followers","following_url":"https://api.github.com/users/Cry0g3n/following{/other_user}","gists_url":"https://api.github.com/users/Cry0g3n/gists{/gist_id}","starred_url":"https://api.github.com/users/Cry0g3n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cry0g3n/subscriptions","organizations_url":"https://api.github.com/users/Cry0g3n/orgs","repos_url":"https://api.github.com/users/Cry0g3n/repos","events_url":"https://api.github.com/users/Cry0g3n/events{/privacy}","received_events_url":"https://api.github.com/users/Cry0g3n/received_events","type":"User","site_admin":false},"body":"Да, как-то не подумал об этом. Исправил.","created_at":"2016-11-27T22:47:16Z","updated_at":"2016-11-27T22:47:16Z","html_url":"https://github.com/Cry0g3n/JS_Homework/pull/13#discussion_r89702059","pull_request_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/comments/89702059"},"html":{"href":"https://github.com/Cry0g3n/JS_Homework/pull/13#discussion_r89702059"},"pull_request":{"href":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/13","id":95230666,"html_url":"https://github.com/Cry0g3n/JS_Homework/pull/13","diff_url":"https://github.com/Cry0g3n/JS_Homework/pull/13.diff","patch_url":"https://github.com/Cry0g3n/JS_Homework/pull/13.patch","issue_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/issues/13","number":13,"state":"open","locked":false,"title":"ДЗ 6-2","user":{"login":"Cry0g3n","id":3369506,"avatar_url":"https://avatars.githubusercontent.com/u/3369506?v=3","gravatar_id":"","url":"https://api.github.com/users/Cry0g3n","html_url":"https://github.com/Cry0g3n","followers_url":"https://api.github.com/users/Cry0g3n/followers","following_url":"https://api.github.com/users/Cry0g3n/following{/other_user}","gists_url":"https://api.github.com/users/Cry0g3n/gists{/gist_id}","starred_url":"https://api.github.com/users/Cry0g3n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cry0g3n/subscriptions","organizations_url":"https://api.github.com/users/Cry0g3n/orgs","repos_url":"https://api.github.com/users/Cry0g3n/repos","events_url":"https://api.github.com/users/Cry0g3n/events{/privacy}","received_events_url":"https://api.github.com/users/Cry0g3n/received_events","type":"User","site_admin":false},"body":"ДЗ 6-2","created_at":"2016-11-24T22:00:56Z","updated_at":"2016-11-27T22:47:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"664cd16c3ec3181b3fdef796ae0524b930f48396","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/13/commits","review_comments_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/13/comments","review_comment_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/issues/13/comments","statuses_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/statuses/da5b567349f330a9995bf9c1cbf64bee878362e3","head":{"label":"Cry0g3n:hm6_2","ref":"hm6_2","sha":"da5b567349f330a9995bf9c1cbf64bee878362e3","user":{"login":"Cry0g3n","id":3369506,"avatar_url":"https://avatars.githubusercontent.com/u/3369506?v=3","gravatar_id":"","url":"https://api.github.com/users/Cry0g3n","html_url":"https://github.com/Cry0g3n","followers_url":"https://api.github.com/users/Cry0g3n/followers","following_url":"https://api.github.com/users/Cry0g3n/following{/other_user}","gists_url":"https://api.github.com/users/Cry0g3n/gists{/gist_id}","starred_url":"https://api.github.com/users/Cry0g3n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cry0g3n/subscriptions","organizations_url":"https://api.github.com/users/Cry0g3n/orgs","repos_url":"https://api.github.com/users/Cry0g3n/repos","events_url":"https://api.github.com/users/Cry0g3n/events{/privacy}","received_events_url":"https://api.github.com/users/Cry0g3n/received_events","type":"User","site_admin":false},"repo":{"id":73310581,"name":"JS_Homework","full_name":"Cry0g3n/JS_Homework","owner":{"login":"Cry0g3n","id":3369506,"avatar_url":"https://avatars.githubusercontent.com/u/3369506?v=3","gravatar_id":"","url":"https://api.github.com/users/Cry0g3n","html_url":"https://github.com/Cry0g3n","followers_url":"https://api.github.com/users/Cry0g3n/followers","following_url":"https://api.github.com/users/Cry0g3n/following{/other_user}","gists_url":"https://api.github.com/users/Cry0g3n/gists{/gist_id}","starred_url":"https://api.github.com/users/Cry0g3n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cry0g3n/subscriptions","organizations_url":"https://api.github.com/users/Cry0g3n/orgs","repos_url":"https://api.github.com/users/Cry0g3n/repos","events_url":"https://api.github.com/users/Cry0g3n/events{/privacy}","received_events_url":"https://api.github.com/users/Cry0g3n/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cry0g3n/JS_Homework","description":null,"fork":false,"url":"https://api.github.com/repos/Cry0g3n/JS_Homework","forks_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/forks","keys_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/teams","hooks_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/hooks","issue_events_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/issues/events{/number}","events_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/events","assignees_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/assignees{/user}","branches_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/branches{/branch}","tags_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/tags","blobs_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/languages","stargazers_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/stargazers","contributors_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/contributors","subscribers_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/subscribers","subscription_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/subscription","commits_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/contents/{+path}","compare_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/merges","archive_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/downloads","issues_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/issues{/number}","pulls_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/labels{/name}","releases_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/releases{/id}","deployments_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/deployments","created_at":"2016-11-09T18:33:36Z","updated_at":"2016-11-09T19:02:07Z","pushed_at":"2016-11-27T22:47:15Z","git_url":"git://github.com/Cry0g3n/JS_Homework.git","ssh_url":"git@github.com:Cry0g3n/JS_Homework.git","clone_url":"https://github.com/Cry0g3n/JS_Homework.git","svn_url":"https://github.com/Cry0g3n/JS_Homework","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Cry0g3n:master","ref":"master","sha":"fc7e17594c27fdecd857d14b0e323c371cec9d73","user":{"login":"Cry0g3n","id":3369506,"avatar_url":"https://avatars.githubusercontent.com/u/3369506?v=3","gravatar_id":"","url":"https://api.github.com/users/Cry0g3n","html_url":"https://github.com/Cry0g3n","followers_url":"https://api.github.com/users/Cry0g3n/followers","following_url":"https://api.github.com/users/Cry0g3n/following{/other_user}","gists_url":"https://api.github.com/users/Cry0g3n/gists{/gist_id}","starred_url":"https://api.github.com/users/Cry0g3n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cry0g3n/subscriptions","organizations_url":"https://api.github.com/users/Cry0g3n/orgs","repos_url":"https://api.github.com/users/Cry0g3n/repos","events_url":"https://api.github.com/users/Cry0g3n/events{/privacy}","received_events_url":"https://api.github.com/users/Cry0g3n/received_events","type":"User","site_admin":false},"repo":{"id":73310581,"name":"JS_Homework","full_name":"Cry0g3n/JS_Homework","owner":{"login":"Cry0g3n","id":3369506,"avatar_url":"https://avatars.githubusercontent.com/u/3369506?v=3","gravatar_id":"","url":"https://api.github.com/users/Cry0g3n","html_url":"https://github.com/Cry0g3n","followers_url":"https://api.github.com/users/Cry0g3n/followers","following_url":"https://api.github.com/users/Cry0g3n/following{/other_user}","gists_url":"https://api.github.com/users/Cry0g3n/gists{/gist_id}","starred_url":"https://api.github.com/users/Cry0g3n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cry0g3n/subscriptions","organizations_url":"https://api.github.com/users/Cry0g3n/orgs","repos_url":"https://api.github.com/users/Cry0g3n/repos","events_url":"https://api.github.com/users/Cry0g3n/events{/privacy}","received_events_url":"https://api.github.com/users/Cry0g3n/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cry0g3n/JS_Homework","description":null,"fork":false,"url":"https://api.github.com/repos/Cry0g3n/JS_Homework","forks_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/forks","keys_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/teams","hooks_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/hooks","issue_events_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/issues/events{/number}","events_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/events","assignees_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/assignees{/user}","branches_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/branches{/branch}","tags_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/tags","blobs_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/languages","stargazers_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/stargazers","contributors_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/contributors","subscribers_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/subscribers","subscription_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/subscription","commits_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/contents/{+path}","compare_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/merges","archive_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/downloads","issues_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/issues{/number}","pulls_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/labels{/name}","releases_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/releases{/id}","deployments_url":"https://api.github.com/repos/Cry0g3n/JS_Homework/deployments","created_at":"2016-11-09T18:33:36Z","updated_at":"2016-11-09T19:02:07Z","pushed_at":"2016-11-27T22:47:15Z","git_url":"git://github.com/Cry0g3n/JS_Homework.git","ssh_url":"git@github.com:Cry0g3n/JS_Homework.git","clone_url":"https://github.com/Cry0g3n/JS_Homework.git","svn_url":"https://github.com/Cry0g3n/JS_Homework","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/13"},"html":{"href":"https://github.com/Cry0g3n/JS_Homework/pull/13"},"issue":{"href":"https://api.github.com/repos/Cry0g3n/JS_Homework/issues/13"},"comments":{"href":"https://api.github.com/repos/Cry0g3n/JS_Homework/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cry0g3n/JS_Homework/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/Cry0g3n/JS_Homework/statuses/da5b567349f330a9995bf9c1cbf64bee878362e3"}}}}
{"actor":{"display_login":"Cry0g3n"}}