{"action":"created","comment":{"url":"https://api.github.com/repos/vvscode/js--base-course/pulls/comments/199293838","pull_request_review_id":133393985,"id":199293838,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTI5MzgzOA==","diff_hunk":"@@ -0,0 +1,48 @@\n+import React, {Component} from 'react';\r\n+import {connect} from 'react-redux';\r\n+import {getCityByLocation, getWeather} from '../../helpers/request';\r\n+import spinner from '../../Loading_icon.gif';\r\n+\r\n+class Weather extends Component {\r\n+  getWeather (position) {\r\n+    this.props.changeCity('');\r\n+    this.props.changeWeather('');\r\n+    Promise.all([\r\n+      getCityByLocation(this.props.method, position),\r\n+      getWeather(this.props.method, position).then(data => data.daily.summary)\r\n+    ]).then(result => {\r\n+      if (!this.props.city) this.props.changeCity(result[0]);\r\n+      if (!this.props.weather) this.props.changeWeather(result[1]);\r\n+    });\r\n+  };\r\n+  componentWillReceiveProps (nextProps) {\r","path":"06/ht/SYarmolenka/React/src/components/footer/weather.js","position":18,"original_position":18,"commit_id":"edd57cc9f5e1fced4e2880005a42f9713ef3a86c","original_commit_id":"edd57cc9f5e1fced4e2880005a42f9713ef3a86c","user":{"login":"vvscode","id":6904368,"node_id":"MDQ6VXNlcjY5MDQzNjg=","avatar_url":"https://avatars1.githubusercontent.com/u/6904368?v=4","gravatar_id":"","url":"https://api.github.com/users/vvscode","html_url":"https://github.com/vvscode","followers_url":"https://api.github.com/users/vvscode/followers","following_url":"https://api.github.com/users/vvscode/following{/other_user}","gists_url":"https://api.github.com/users/vvscode/gists{/gist_id}","starred_url":"https://api.github.com/users/vvscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvscode/subscriptions","organizations_url":"https://api.github.com/users/vvscode/orgs","repos_url":"https://api.github.com/users/vvscode/repos","events_url":"https://api.github.com/users/vvscode/events{/privacy}","received_events_url":"https://api.github.com/users/vvscode/received_events","type":"User","site_admin":false},"body":"https://medium.com/@baphemot/whats-new-in-react-16-3-d2c9b7b6193b","created_at":"2018-06-29T22:24:34Z","updated_at":"2018-06-29T22:24:34Z","html_url":"https://github.com/vvscode/js--base-course/pull/363#discussion_r199293838","pull_request_url":"https://api.github.com/repos/vvscode/js--base-course/pulls/363","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/comments/199293838"},"html":{"href":"https://github.com/vvscode/js--base-course/pull/363#discussion_r199293838"},"pull_request":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/363"}}},"pull_request":{"url":"https://api.github.com/repos/vvscode/js--base-course/pulls/363","id":198428270,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NDI4Mjcw","html_url":"https://github.com/vvscode/js--base-course/pull/363","diff_url":"https://github.com/vvscode/js--base-course/pull/363.diff","patch_url":"https://github.com/vvscode/js--base-course/pull/363.patch","issue_url":"https://api.github.com/repos/vvscode/js--base-course/issues/363","number":363,"state":"open","locked":false,"title":"ht-06","user":{"login":"SYarmolenka","id":33099195,"node_id":"MDQ6VXNlcjMzMDk5MTk1","avatar_url":"https://avatars1.githubusercontent.com/u/33099195?v=4","gravatar_id":"","url":"https://api.github.com/users/SYarmolenka","html_url":"https://github.com/SYarmolenka","followers_url":"https://api.github.com/users/SYarmolenka/followers","following_url":"https://api.github.com/users/SYarmolenka/following{/other_user}","gists_url":"https://api.github.com/users/SYarmolenka/gists{/gist_id}","starred_url":"https://api.github.com/users/SYarmolenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SYarmolenka/subscriptions","organizations_url":"https://api.github.com/users/SYarmolenka/orgs","repos_url":"https://api.github.com/users/SYarmolenka/repos","events_url":"https://api.github.com/users/SYarmolenka/events{/privacy}","received_events_url":"https://api.github.com/users/SYarmolenka/received_events","type":"User","site_admin":false},"body":"### Создавая пуллреквест, я:\r\n\r\n* [x] убедился, что `diff` измненеий содержит только одно домашнее задание (_1 PR = 1 домашнее задание_)\r\n\r\n- [x] убедился, что я изменял только файлы в своих директориях и не трогал общие файлы и файлы других студентов\r\n\r\n- [x] проверил, что закоментированный код удален (это не касается именно закоментированного кода, а не заданий и настроек)\r\n\r\n- [x] отформатировал мой код с помощью `prettier` - [prettier](http://prettier.io/)\r\n\r\n- [x] проверил именование переменных, фунций и методов и их соответвие соглашениям\r\n\r\ndeploy: https://syarmolenka.github.io/knowweather","created_at":"2018-06-29T21:26:19Z","updated_at":"2018-06-29T22:24:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"635a162ee8ac64edfca22403d5367583eaebf6d4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vvscode/js--base-course/pulls/363/commits","review_comments_url":"https://api.github.com/repos/vvscode/js--base-course/pulls/363/comments","review_comment_url":"https://api.github.com/repos/vvscode/js--base-course/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vvscode/js--base-course/issues/363/comments","statuses_url":"https://api.github.com/repos/vvscode/js--base-course/statuses/edd57cc9f5e1fced4e2880005a42f9713ef3a86c","head":{"label":"SYarmolenka:06","ref":"06","sha":"edd57cc9f5e1fced4e2880005a42f9713ef3a86c","user":{"login":"SYarmolenka","id":33099195,"node_id":"MDQ6VXNlcjMzMDk5MTk1","avatar_url":"https://avatars1.githubusercontent.com/u/33099195?v=4","gravatar_id":"","url":"https://api.github.com/users/SYarmolenka","html_url":"https://github.com/SYarmolenka","followers_url":"https://api.github.com/users/SYarmolenka/followers","following_url":"https://api.github.com/users/SYarmolenka/following{/other_user}","gists_url":"https://api.github.com/users/SYarmolenka/gists{/gist_id}","starred_url":"https://api.github.com/users/SYarmolenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SYarmolenka/subscriptions","organizations_url":"https://api.github.com/users/SYarmolenka/orgs","repos_url":"https://api.github.com/users/SYarmolenka/repos","events_url":"https://api.github.com/users/SYarmolenka/events{/privacy}","received_events_url":"https://api.github.com/users/SYarmolenka/received_events","type":"User","site_admin":false},"repo":{"id":124755108,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ3NTUxMDg=","name":"js--base-course","full_name":"SYarmolenka/js--base-course","owner":{"login":"SYarmolenka","id":33099195,"node_id":"MDQ6VXNlcjMzMDk5MTk1","avatar_url":"https://avatars1.githubusercontent.com/u/33099195?v=4","gravatar_id":"","url":"https://api.github.com/users/SYarmolenka","html_url":"https://github.com/SYarmolenka","followers_url":"https://api.github.com/users/SYarmolenka/followers","following_url":"https://api.github.com/users/SYarmolenka/following{/other_user}","gists_url":"https://api.github.com/users/SYarmolenka/gists{/gist_id}","starred_url":"https://api.github.com/users/SYarmolenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SYarmolenka/subscriptions","organizations_url":"https://api.github.com/users/SYarmolenka/orgs","repos_url":"https://api.github.com/users/SYarmolenka/repos","events_url":"https://api.github.com/users/SYarmolenka/events{/privacy}","received_events_url":"https://api.github.com/users/SYarmolenka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SYarmolenka/js--base-course","description":"Базовый курс JS","fork":true,"url":"https://api.github.com/repos/SYarmolenka/js--base-course","forks_url":"https://api.github.com/repos/SYarmolenka/js--base-course/forks","keys_url":"https://api.github.com/repos/SYarmolenka/js--base-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SYarmolenka/js--base-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SYarmolenka/js--base-course/teams","hooks_url":"https://api.github.com/repos/SYarmolenka/js--base-course/hooks","issue_events_url":"https://api.github.com/repos/SYarmolenka/js--base-course/issues/events{/number}","events_url":"https://api.github.com/repos/SYarmolenka/js--base-course/events","assignees_url":"https://api.github.com/repos/SYarmolenka/js--base-course/assignees{/user}","branches_url":"https://api.github.com/repos/SYarmolenka/js--base-course/branches{/branch}","tags_url":"https://api.github.com/repos/SYarmolenka/js--base-course/tags","blobs_url":"https://api.github.com/repos/SYarmolenka/js--base-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SYarmolenka/js--base-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SYarmolenka/js--base-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/SYarmolenka/js--base-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SYarmolenka/js--base-course/statuses/{sha}","languages_url":"https://api.github.com/repos/SYarmolenka/js--base-course/languages","stargazers_url":"https://api.github.com/repos/SYarmolenka/js--base-course/stargazers","contributors_url":"https://api.github.com/repos/SYarmolenka/js--base-course/contributors","subscribers_url":"https://api.github.com/repos/SYarmolenka/js--base-course/subscribers","subscription_url":"https://api.github.com/repos/SYarmolenka/js--base-course/subscription","commits_url":"https://api.github.com/repos/SYarmolenka/js--base-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/SYarmolenka/js--base-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/SYarmolenka/js--base-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/SYarmolenka/js--base-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/SYarmolenka/js--base-course/contents/{+path}","compare_url":"https://api.github.com/repos/SYarmolenka/js--base-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SYarmolenka/js--base-course/merges","archive_url":"https://api.github.com/repos/SYarmolenka/js--base-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SYarmolenka/js--base-course/downloads","issues_url":"https://api.github.com/repos/SYarmolenka/js--base-course/issues{/number}","pulls_url":"https://api.github.com/repos/SYarmolenka/js--base-course/pulls{/number}","milestones_url":"https://api.github.com/repos/SYarmolenka/js--base-course/milestones{/number}","notifications_url":"https://api.github.com/repos/SYarmolenka/js--base-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SYarmolenka/js--base-course/labels{/name}","releases_url":"https://api.github.com/repos/SYarmolenka/js--base-course/releases{/id}","deployments_url":"https://api.github.com/repos/SYarmolenka/js--base-course/deployments","created_at":"2018-03-11T12:40:33Z","updated_at":"2018-05-31T13:39:08Z","pushed_at":"2018-06-29T21:23:27Z","git_url":"git://github.com/SYarmolenka/js--base-course.git","ssh_url":"git@github.com:SYarmolenka/js--base-course.git","clone_url":"https://github.com/SYarmolenka/js--base-course.git","svn_url":"https://github.com/SYarmolenka/js--base-course","homepage":"http://bit.ly/codehardjs","size":23446,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"vvscode:master","ref":"master","sha":"695e1200284e62a60601edb1a73397c3a61097f6","user":{"login":"vvscode","id":6904368,"node_id":"MDQ6VXNlcjY5MDQzNjg=","avatar_url":"https://avatars1.githubusercontent.com/u/6904368?v=4","gravatar_id":"","url":"https://api.github.com/users/vvscode","html_url":"https://github.com/vvscode","followers_url":"https://api.github.com/users/vvscode/followers","following_url":"https://api.github.com/users/vvscode/following{/other_user}","gists_url":"https://api.github.com/users/vvscode/gists{/gist_id}","starred_url":"https://api.github.com/users/vvscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvscode/subscriptions","organizations_url":"https://api.github.com/users/vvscode/orgs","repos_url":"https://api.github.com/users/vvscode/repos","events_url":"https://api.github.com/users/vvscode/events{/privacy}","received_events_url":"https://api.github.com/users/vvscode/received_events","type":"User","site_admin":false},"repo":{"id":85982423,"node_id":"MDEwOlJlcG9zaXRvcnk4NTk4MjQyMw==","name":"js--base-course","full_name":"vvscode/js--base-course","owner":{"login":"vvscode","id":6904368,"node_id":"MDQ6VXNlcjY5MDQzNjg=","avatar_url":"https://avatars1.githubusercontent.com/u/6904368?v=4","gravatar_id":"","url":"https://api.github.com/users/vvscode","html_url":"https://github.com/vvscode","followers_url":"https://api.github.com/users/vvscode/followers","following_url":"https://api.github.com/users/vvscode/following{/other_user}","gists_url":"https://api.github.com/users/vvscode/gists{/gist_id}","starred_url":"https://api.github.com/users/vvscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvscode/subscriptions","organizations_url":"https://api.github.com/users/vvscode/orgs","repos_url":"https://api.github.com/users/vvscode/repos","events_url":"https://api.github.com/users/vvscode/events{/privacy}","received_events_url":"https://api.github.com/users/vvscode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vvscode/js--base-course","description":"Базовый курс JS","fork":false,"url":"https://api.github.com/repos/vvscode/js--base-course","forks_url":"https://api.github.com/repos/vvscode/js--base-course/forks","keys_url":"https://api.github.com/repos/vvscode/js--base-course/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vvscode/js--base-course/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vvscode/js--base-course/teams","hooks_url":"https://api.github.com/repos/vvscode/js--base-course/hooks","issue_events_url":"https://api.github.com/repos/vvscode/js--base-course/issues/events{/number}","events_url":"https://api.github.com/repos/vvscode/js--base-course/events","assignees_url":"https://api.github.com/repos/vvscode/js--base-course/assignees{/user}","branches_url":"https://api.github.com/repos/vvscode/js--base-course/branches{/branch}","tags_url":"https://api.github.com/repos/vvscode/js--base-course/tags","blobs_url":"https://api.github.com/repos/vvscode/js--base-course/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vvscode/js--base-course/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vvscode/js--base-course/git/refs{/sha}","trees_url":"https://api.github.com/repos/vvscode/js--base-course/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vvscode/js--base-course/statuses/{sha}","languages_url":"https://api.github.com/repos/vvscode/js--base-course/languages","stargazers_url":"https://api.github.com/repos/vvscode/js--base-course/stargazers","contributors_url":"https://api.github.com/repos/vvscode/js--base-course/contributors","subscribers_url":"https://api.github.com/repos/vvscode/js--base-course/subscribers","subscription_url":"https://api.github.com/repos/vvscode/js--base-course/subscription","commits_url":"https://api.github.com/repos/vvscode/js--base-course/commits{/sha}","git_commits_url":"https://api.github.com/repos/vvscode/js--base-course/git/commits{/sha}","comments_url":"https://api.github.com/repos/vvscode/js--base-course/comments{/number}","issue_comment_url":"https://api.github.com/repos/vvscode/js--base-course/issues/comments{/number}","contents_url":"https://api.github.com/repos/vvscode/js--base-course/contents/{+path}","compare_url":"https://api.github.com/repos/vvscode/js--base-course/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vvscode/js--base-course/merges","archive_url":"https://api.github.com/repos/vvscode/js--base-course/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vvscode/js--base-course/downloads","issues_url":"https://api.github.com/repos/vvscode/js--base-course/issues{/number}","pulls_url":"https://api.github.com/repos/vvscode/js--base-course/pulls{/number}","milestones_url":"https://api.github.com/repos/vvscode/js--base-course/milestones{/number}","notifications_url":"https://api.github.com/repos/vvscode/js--base-course/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vvscode/js--base-course/labels{/name}","releases_url":"https://api.github.com/repos/vvscode/js--base-course/releases{/id}","deployments_url":"https://api.github.com/repos/vvscode/js--base-course/deployments","created_at":"2017-03-23T18:10:10Z","updated_at":"2018-06-29T12:11:05Z","pushed_at":"2018-06-29T21:26:20Z","git_url":"git://github.com/vvscode/js--base-course.git","ssh_url":"git@github.com:vvscode/js--base-course.git","clone_url":"https://github.com/vvscode/js--base-course.git","svn_url":"https://github.com/vvscode/js--base-course","homepage":"http://bit.ly/codehardjs","size":22791,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"archived":false,"open_issues_count":20,"license":null,"forks":94,"open_issues":20,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/363"},"html":{"href":"https://github.com/vvscode/js--base-course/pull/363"},"issue":{"href":"https://api.github.com/repos/vvscode/js--base-course/issues/363"},"comments":{"href":"https://api.github.com/repos/vvscode/js--base-course/issues/363/comments"},"review_comments":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/363/comments"},"review_comment":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vvscode/js--base-course/pulls/363/commits"},"statuses":{"href":"https://api.github.com/repos/vvscode/js--base-course/statuses/edd57cc9f5e1fced4e2880005a42f9713ef3a86c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vvscode"}}