{"action":"created","comment":{"url":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/comments/125432557","pull_request_review_id":47820231,"id":125432557,"diff_hunk":"@@ -21,19 +27,16 @@ class Main extends Component {\n           EditorState.createWithContent(convertFromRaw(JSON.parse(snapshot.val()[id].raw)))\n         posts.push({ id, editorState ,...snapshot.val()[id] })\n       })\n+      posts.sort((a, b) => b.date - a.date)\n       this.setState({ posts, loading: false })\n     })\n   }\n \n-  onClickPost(id) {\n-    this.props.history.push('/post/' + id)\n-  }\n-\n   showPosts() {\n     const array = this.state.posts.slice(0, this.state.qty)\n     return array.map((item, i) =>\n-      <div onClick={() => this.onClickPost(item.id)} key={i}>\n-        <h1>{item.title}</h1>\n+      <div key={i}>\n+        <h1><a href={'/post/' + item.id}>{item.title}</a></h1>","path":"src/routes/Main.js","position":null,"original_position":34,"commit_id":"f0c7c039ac44317677cc99f4522bf530c238f809","original_commit_id":"f0c7c039ac44317677cc99f4522bf530c238f809","user":{"login":"Stas-Buzunko","id":12331100,"avatar_url":"https://avatars1.githubusercontent.com/u/12331100?v=3","gravatar_id":"","url":"https://api.github.com/users/Stas-Buzunko","html_url":"https://github.com/Stas-Buzunko","followers_url":"https://api.github.com/users/Stas-Buzunko/followers","following_url":"https://api.github.com/users/Stas-Buzunko/following{/other_user}","gists_url":"https://api.github.com/users/Stas-Buzunko/gists{/gist_id}","starred_url":"https://api.github.com/users/Stas-Buzunko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stas-Buzunko/subscriptions","organizations_url":"https://api.github.com/users/Stas-Buzunko/orgs","repos_url":"https://api.github.com/users/Stas-Buzunko/repos","events_url":"https://api.github.com/users/Stas-Buzunko/events{/privacy}","received_events_url":"https://api.github.com/users/Stas-Buzunko/received_events","type":"User","site_admin":false},"body":"a tag should be outside h1","created_at":"2017-07-04T09:45:06Z","updated_at":"2017-07-04T09:45:18Z","html_url":"https://github.com/Stas-Buzunko/blog/pull/1#discussion_r125432557","pull_request_url":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/comments/125432557"},"html":{"href":"https://github.com/Stas-Buzunko/blog/pull/1#discussion_r125432557"},"pull_request":{"href":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/1","id":128682829,"html_url":"https://github.com/Stas-Buzunko/blog/pull/1","diff_url":"https://github.com/Stas-Buzunko/blog/pull/1.diff","patch_url":"https://github.com/Stas-Buzunko/blog/pull/1.patch","issue_url":"https://api.github.com/repos/Stas-Buzunko/blog/issues/1","number":1,"state":"open","locked":false,"title":"Savepost","user":{"login":"Karador","id":25798016,"avatar_url":"https://avatars0.githubusercontent.com/u/25798016?v=3","gravatar_id":"","url":"https://api.github.com/users/Karador","html_url":"https://github.com/Karador","followers_url":"https://api.github.com/users/Karador/followers","following_url":"https://api.github.com/users/Karador/following{/other_user}","gists_url":"https://api.github.com/users/Karador/gists{/gist_id}","starred_url":"https://api.github.com/users/Karador/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Karador/subscriptions","organizations_url":"https://api.github.com/users/Karador/orgs","repos_url":"https://api.github.com/users/Karador/repos","events_url":"https://api.github.com/users/Karador/events{/privacy}","received_events_url":"https://api.github.com/users/Karador/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-03T19:20:34Z","updated_at":"2017-07-04T09:45:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f0edd705cda786212d43764b5fed249b97d3d35","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Stas-Buzunko/blog/issues/1/comments","statuses_url":"https://api.github.com/repos/Stas-Buzunko/blog/statuses/f0c7c039ac44317677cc99f4522bf530c238f809","head":{"label":"Stas-Buzunko:savepost","ref":"savepost","sha":"f0c7c039ac44317677cc99f4522bf530c238f809","user":{"login":"Stas-Buzunko","id":12331100,"avatar_url":"https://avatars1.githubusercontent.com/u/12331100?v=3","gravatar_id":"","url":"https://api.github.com/users/Stas-Buzunko","html_url":"https://github.com/Stas-Buzunko","followers_url":"https://api.github.com/users/Stas-Buzunko/followers","following_url":"https://api.github.com/users/Stas-Buzunko/following{/other_user}","gists_url":"https://api.github.com/users/Stas-Buzunko/gists{/gist_id}","starred_url":"https://api.github.com/users/Stas-Buzunko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stas-Buzunko/subscriptions","organizations_url":"https://api.github.com/users/Stas-Buzunko/orgs","repos_url":"https://api.github.com/users/Stas-Buzunko/repos","events_url":"https://api.github.com/users/Stas-Buzunko/events{/privacy}","received_events_url":"https://api.github.com/users/Stas-Buzunko/received_events","type":"User","site_admin":false},"repo":{"id":95860845,"name":"blog","full_name":"Stas-Buzunko/blog","owner":{"login":"Stas-Buzunko","id":12331100,"avatar_url":"https://avatars1.githubusercontent.com/u/12331100?v=3","gravatar_id":"","url":"https://api.github.com/users/Stas-Buzunko","html_url":"https://github.com/Stas-Buzunko","followers_url":"https://api.github.com/users/Stas-Buzunko/followers","following_url":"https://api.github.com/users/Stas-Buzunko/following{/other_user}","gists_url":"https://api.github.com/users/Stas-Buzunko/gists{/gist_id}","starred_url":"https://api.github.com/users/Stas-Buzunko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stas-Buzunko/subscriptions","organizations_url":"https://api.github.com/users/Stas-Buzunko/orgs","repos_url":"https://api.github.com/users/Stas-Buzunko/repos","events_url":"https://api.github.com/users/Stas-Buzunko/events{/privacy}","received_events_url":"https://api.github.com/users/Stas-Buzunko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stas-Buzunko/blog","description":null,"fork":false,"url":"https://api.github.com/repos/Stas-Buzunko/blog","forks_url":"https://api.github.com/repos/Stas-Buzunko/blog/forks","keys_url":"https://api.github.com/repos/Stas-Buzunko/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stas-Buzunko/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stas-Buzunko/blog/teams","hooks_url":"https://api.github.com/repos/Stas-Buzunko/blog/hooks","issue_events_url":"https://api.github.com/repos/Stas-Buzunko/blog/issues/events{/number}","events_url":"https://api.github.com/repos/Stas-Buzunko/blog/events","assignees_url":"https://api.github.com/repos/Stas-Buzunko/blog/assignees{/user}","branches_url":"https://api.github.com/repos/Stas-Buzunko/blog/branches{/branch}","tags_url":"https://api.github.com/repos/Stas-Buzunko/blog/tags","blobs_url":"https://api.github.com/repos/Stas-Buzunko/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stas-Buzunko/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stas-Buzunko/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stas-Buzunko/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stas-Buzunko/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/Stas-Buzunko/blog/languages","stargazers_url":"https://api.github.com/repos/Stas-Buzunko/blog/stargazers","contributors_url":"https://api.github.com/repos/Stas-Buzunko/blog/contributors","subscribers_url":"https://api.github.com/repos/Stas-Buzunko/blog/subscribers","subscription_url":"https://api.github.com/repos/Stas-Buzunko/blog/subscription","commits_url":"https://api.github.com/repos/Stas-Buzunko/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stas-Buzunko/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stas-Buzunko/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stas-Buzunko/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stas-Buzunko/blog/contents/{+path}","compare_url":"https://api.github.com/repos/Stas-Buzunko/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stas-Buzunko/blog/merges","archive_url":"https://api.github.com/repos/Stas-Buzunko/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stas-Buzunko/blog/downloads","issues_url":"https://api.github.com/repos/Stas-Buzunko/blog/issues{/number}","pulls_url":"https://api.github.com/repos/Stas-Buzunko/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/Stas-Buzunko/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/Stas-Buzunko/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stas-Buzunko/blog/labels{/name}","releases_url":"https://api.github.com/repos/Stas-Buzunko/blog/releases{/id}","deployments_url":"https://api.github.com/repos/Stas-Buzunko/blog/deployments","created_at":"2017-06-30T07:19:46Z","updated_at":"2017-06-30T07:31:55Z","pushed_at":"2017-07-04T09:10:56Z","git_url":"git://github.com/Stas-Buzunko/blog.git","ssh_url":"git@github.com:Stas-Buzunko/blog.git","clone_url":"https://github.com/Stas-Buzunko/blog.git","svn_url":"https://github.com/Stas-Buzunko/blog","homepage":null,"size":1653,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Stas-Buzunko:master","ref":"master","sha":"a3bcac3ae93f6038577722e16ce04c44b78fcc87","user":{"login":"Stas-Buzunko","id":12331100,"avatar_url":"https://avatars1.githubusercontent.com/u/12331100?v=3","gravatar_id":"","url":"https://api.github.com/users/Stas-Buzunko","html_url":"https://github.com/Stas-Buzunko","followers_url":"https://api.github.com/users/Stas-Buzunko/followers","following_url":"https://api.github.com/users/Stas-Buzunko/following{/other_user}","gists_url":"https://api.github.com/users/Stas-Buzunko/gists{/gist_id}","starred_url":"https://api.github.com/users/Stas-Buzunko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stas-Buzunko/subscriptions","organizations_url":"https://api.github.com/users/Stas-Buzunko/orgs","repos_url":"https://api.github.com/users/Stas-Buzunko/repos","events_url":"https://api.github.com/users/Stas-Buzunko/events{/privacy}","received_events_url":"https://api.github.com/users/Stas-Buzunko/received_events","type":"User","site_admin":false},"repo":{"id":95860845,"name":"blog","full_name":"Stas-Buzunko/blog","owner":{"login":"Stas-Buzunko","id":12331100,"avatar_url":"https://avatars1.githubusercontent.com/u/12331100?v=3","gravatar_id":"","url":"https://api.github.com/users/Stas-Buzunko","html_url":"https://github.com/Stas-Buzunko","followers_url":"https://api.github.com/users/Stas-Buzunko/followers","following_url":"https://api.github.com/users/Stas-Buzunko/following{/other_user}","gists_url":"https://api.github.com/users/Stas-Buzunko/gists{/gist_id}","starred_url":"https://api.github.com/users/Stas-Buzunko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stas-Buzunko/subscriptions","organizations_url":"https://api.github.com/users/Stas-Buzunko/orgs","repos_url":"https://api.github.com/users/Stas-Buzunko/repos","events_url":"https://api.github.com/users/Stas-Buzunko/events{/privacy}","received_events_url":"https://api.github.com/users/Stas-Buzunko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stas-Buzunko/blog","description":null,"fork":false,"url":"https://api.github.com/repos/Stas-Buzunko/blog","forks_url":"https://api.github.com/repos/Stas-Buzunko/blog/forks","keys_url":"https://api.github.com/repos/Stas-Buzunko/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stas-Buzunko/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stas-Buzunko/blog/teams","hooks_url":"https://api.github.com/repos/Stas-Buzunko/blog/hooks","issue_events_url":"https://api.github.com/repos/Stas-Buzunko/blog/issues/events{/number}","events_url":"https://api.github.com/repos/Stas-Buzunko/blog/events","assignees_url":"https://api.github.com/repos/Stas-Buzunko/blog/assignees{/user}","branches_url":"https://api.github.com/repos/Stas-Buzunko/blog/branches{/branch}","tags_url":"https://api.github.com/repos/Stas-Buzunko/blog/tags","blobs_url":"https://api.github.com/repos/Stas-Buzunko/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stas-Buzunko/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stas-Buzunko/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stas-Buzunko/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stas-Buzunko/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/Stas-Buzunko/blog/languages","stargazers_url":"https://api.github.com/repos/Stas-Buzunko/blog/stargazers","contributors_url":"https://api.github.com/repos/Stas-Buzunko/blog/contributors","subscribers_url":"https://api.github.com/repos/Stas-Buzunko/blog/subscribers","subscription_url":"https://api.github.com/repos/Stas-Buzunko/blog/subscription","commits_url":"https://api.github.com/repos/Stas-Buzunko/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stas-Buzunko/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stas-Buzunko/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stas-Buzunko/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stas-Buzunko/blog/contents/{+path}","compare_url":"https://api.github.com/repos/Stas-Buzunko/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stas-Buzunko/blog/merges","archive_url":"https://api.github.com/repos/Stas-Buzunko/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stas-Buzunko/blog/downloads","issues_url":"https://api.github.com/repos/Stas-Buzunko/blog/issues{/number}","pulls_url":"https://api.github.com/repos/Stas-Buzunko/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/Stas-Buzunko/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/Stas-Buzunko/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stas-Buzunko/blog/labels{/name}","releases_url":"https://api.github.com/repos/Stas-Buzunko/blog/releases{/id}","deployments_url":"https://api.github.com/repos/Stas-Buzunko/blog/deployments","created_at":"2017-06-30T07:19:46Z","updated_at":"2017-06-30T07:31:55Z","pushed_at":"2017-07-04T09:10:56Z","git_url":"git://github.com/Stas-Buzunko/blog.git","ssh_url":"git@github.com:Stas-Buzunko/blog.git","clone_url":"https://github.com/Stas-Buzunko/blog.git","svn_url":"https://github.com/Stas-Buzunko/blog","homepage":null,"size":1653,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/1"},"html":{"href":"https://github.com/Stas-Buzunko/blog/pull/1"},"issue":{"href":"https://api.github.com/repos/Stas-Buzunko/blog/issues/1"},"comments":{"href":"https://api.github.com/repos/Stas-Buzunko/blog/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Stas-Buzunko/blog/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Stas-Buzunko/blog/statuses/f0c7c039ac44317677cc99f4522bf530c238f809"}}}}
{"actor":{"display_login":"Stas-Buzunko"}}