{"action":"created","comment":{"url":"https://api.github.com/repos/top-drawer/web/pulls/comments/70560677","id":70560677,"diff_hunk":"@@ -0,0 +1,30 @@\n+import React from 'react';\n+import { connect } from 'react-redux';\n+import { withRouter } from 'react-router';\n+import cx from 'classnames';\n+\n+import { logout } from 'app/store/authentication';\n+\n+const mapStateToProps = (state) => ({\n+  authentication: state.authentication\n+})\n+\n+const mapDispatchToProps = (dispatch) => ({\n+  logout: () => dispatch(logout())\n+})\n+\n+class Logout extends React.Component {\n+  componentWillMount() {\n+    if (_.get(this.props, 'authentication.user')) {\n+      this.props.logout();\n+    }\n+\n+    this.props.router.push('/'); // redirect to home page\n+  }\n+\n+  render() {\n+    return false;\n+  }\n+}\n+\n+export default connect(mapStateToProps, mapDispatchToProps)(withRouter(Logout));","path":"app/containers/pages/account/logout/index.jsx","position":30,"original_position":30,"commit_id":"e320b31f8a15e1cde9a7dad594a418987ce44c7f","original_commit_id":"e320b31f8a15e1cde9a7dad594a418987ce44c7f","user":{"login":"taylorphillips","id":850769,"avatar_url":"https://avatars.githubusercontent.com/u/850769?v=3","gravatar_id":"","url":"https://api.github.com/users/taylorphillips","html_url":"https://github.com/taylorphillips","followers_url":"https://api.github.com/users/taylorphillips/followers","following_url":"https://api.github.com/users/taylorphillips/following{/other_user}","gists_url":"https://api.github.com/users/taylorphillips/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorphillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorphillips/subscriptions","organizations_url":"https://api.github.com/users/taylorphillips/orgs","repos_url":"https://api.github.com/users/taylorphillips/repos","events_url":"https://api.github.com/users/taylorphillips/events{/privacy}","received_events_url":"https://api.github.com/users/taylorphillips/received_events","type":"User","site_admin":false},"body":"These files look so gross. Would love to figure out something better next project.","created_at":"2016-07-13T03:43:07Z","updated_at":"2016-07-13T03:43:07Z","html_url":"https://github.com/top-drawer/web/pull/9#discussion_r70560677","pull_request_url":"https://api.github.com/repos/top-drawer/web/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/top-drawer/web/pulls/comments/70560677"},"html":{"href":"https://github.com/top-drawer/web/pull/9#discussion_r70560677"},"pull_request":{"href":"https://api.github.com/repos/top-drawer/web/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/top-drawer/web/pulls/9","id":77221120,"html_url":"https://github.com/top-drawer/web/pull/9","diff_url":"https://github.com/top-drawer/web/pull/9.diff","patch_url":"https://github.com/top-drawer/web/pull/9.patch","issue_url":"https://api.github.com/repos/top-drawer/web/issues/9","number":9,"state":"closed","locked":false,"title":"Refactor login & add logout and register","user":{"login":"SteveDeWald","id":179724,"avatar_url":"https://avatars.githubusercontent.com/u/179724?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveDeWald","html_url":"https://github.com/SteveDeWald","followers_url":"https://api.github.com/users/SteveDeWald/followers","following_url":"https://api.github.com/users/SteveDeWald/following{/other_user}","gists_url":"https://api.github.com/users/SteveDeWald/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveDeWald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveDeWald/subscriptions","organizations_url":"https://api.github.com/users/SteveDeWald/orgs","repos_url":"https://api.github.com/users/SteveDeWald/repos","events_url":"https://api.github.com/users/SteveDeWald/events{/privacy}","received_events_url":"https://api.github.com/users/SteveDeWald/received_events","type":"User","site_admin":false},"body":"Trying one more time...","created_at":"2016-07-13T02:22:20Z","updated_at":"2016-07-13T03:43:07Z","closed_at":"2016-07-13T02:22:31Z","merged_at":"2016-07-13T02:22:31Z","merge_commit_sha":"941babf44737e52233eba94550eecbd2e8a5c09d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/top-drawer/web/pulls/9/commits","review_comments_url":"https://api.github.com/repos/top-drawer/web/pulls/9/comments","review_comment_url":"https://api.github.com/repos/top-drawer/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/top-drawer/web/issues/9/comments","statuses_url":"https://api.github.com/repos/top-drawer/web/statuses/e320b31f8a15e1cde9a7dad594a418987ce44c7f","head":{"label":"top-drawer:steve-and-taylor/user-account-flows","ref":"steve-and-taylor/user-account-flows","sha":"e320b31f8a15e1cde9a7dad594a418987ce44c7f","user":{"login":"top-drawer","id":19616133,"avatar_url":"https://avatars.githubusercontent.com/u/19616133?v=3","gravatar_id":"","url":"https://api.github.com/users/top-drawer","html_url":"https://github.com/top-drawer","followers_url":"https://api.github.com/users/top-drawer/followers","following_url":"https://api.github.com/users/top-drawer/following{/other_user}","gists_url":"https://api.github.com/users/top-drawer/gists{/gist_id}","starred_url":"https://api.github.com/users/top-drawer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/top-drawer/subscriptions","organizations_url":"https://api.github.com/users/top-drawer/orgs","repos_url":"https://api.github.com/users/top-drawer/repos","events_url":"https://api.github.com/users/top-drawer/events{/privacy}","received_events_url":"https://api.github.com/users/top-drawer/received_events","type":"Organization","site_admin":false},"repo":{"id":59865900,"name":"web","full_name":"top-drawer/web","owner":{"login":"top-drawer","id":19616133,"avatar_url":"https://avatars.githubusercontent.com/u/19616133?v=3","gravatar_id":"","url":"https://api.github.com/users/top-drawer","html_url":"https://github.com/top-drawer","followers_url":"https://api.github.com/users/top-drawer/followers","following_url":"https://api.github.com/users/top-drawer/following{/other_user}","gists_url":"https://api.github.com/users/top-drawer/gists{/gist_id}","starred_url":"https://api.github.com/users/top-drawer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/top-drawer/subscriptions","organizations_url":"https://api.github.com/users/top-drawer/orgs","repos_url":"https://api.github.com/users/top-drawer/repos","events_url":"https://api.github.com/users/top-drawer/events{/privacy}","received_events_url":"https://api.github.com/users/top-drawer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/top-drawer/web","description":"The website","fork":false,"url":"https://api.github.com/repos/top-drawer/web","forks_url":"https://api.github.com/repos/top-drawer/web/forks","keys_url":"https://api.github.com/repos/top-drawer/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/top-drawer/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/top-drawer/web/teams","hooks_url":"https://api.github.com/repos/top-drawer/web/hooks","issue_events_url":"https://api.github.com/repos/top-drawer/web/issues/events{/number}","events_url":"https://api.github.com/repos/top-drawer/web/events","assignees_url":"https://api.github.com/repos/top-drawer/web/assignees{/user}","branches_url":"https://api.github.com/repos/top-drawer/web/branches{/branch}","tags_url":"https://api.github.com/repos/top-drawer/web/tags","blobs_url":"https://api.github.com/repos/top-drawer/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/top-drawer/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/top-drawer/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/top-drawer/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/top-drawer/web/statuses/{sha}","languages_url":"https://api.github.com/repos/top-drawer/web/languages","stargazers_url":"https://api.github.com/repos/top-drawer/web/stargazers","contributors_url":"https://api.github.com/repos/top-drawer/web/contributors","subscribers_url":"https://api.github.com/repos/top-drawer/web/subscribers","subscription_url":"https://api.github.com/repos/top-drawer/web/subscription","commits_url":"https://api.github.com/repos/top-drawer/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/top-drawer/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/top-drawer/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/top-drawer/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/top-drawer/web/contents/{+path}","compare_url":"https://api.github.com/repos/top-drawer/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/top-drawer/web/merges","archive_url":"https://api.github.com/repos/top-drawer/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/top-drawer/web/downloads","issues_url":"https://api.github.com/repos/top-drawer/web/issues{/number}","pulls_url":"https://api.github.com/repos/top-drawer/web/pulls{/number}","milestones_url":"https://api.github.com/repos/top-drawer/web/milestones{/number}","notifications_url":"https://api.github.com/repos/top-drawer/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/top-drawer/web/labels{/name}","releases_url":"https://api.github.com/repos/top-drawer/web/releases{/id}","deployments_url":"https://api.github.com/repos/top-drawer/web/deployments","created_at":"2016-05-27T22:12:50Z","updated_at":"2016-06-21T00:48:41Z","pushed_at":"2016-07-13T03:41:46Z","git_url":"git://github.com/top-drawer/web.git","ssh_url":"git@github.com:top-drawer/web.git","clone_url":"https://github.com/top-drawer/web.git","svn_url":"https://github.com/top-drawer/web","homepage":null,"size":209,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"top-drawer:master","ref":"master","sha":"aae2c045726ec0595e589f223217c2889199aee8","user":{"login":"top-drawer","id":19616133,"avatar_url":"https://avatars.githubusercontent.com/u/19616133?v=3","gravatar_id":"","url":"https://api.github.com/users/top-drawer","html_url":"https://github.com/top-drawer","followers_url":"https://api.github.com/users/top-drawer/followers","following_url":"https://api.github.com/users/top-drawer/following{/other_user}","gists_url":"https://api.github.com/users/top-drawer/gists{/gist_id}","starred_url":"https://api.github.com/users/top-drawer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/top-drawer/subscriptions","organizations_url":"https://api.github.com/users/top-drawer/orgs","repos_url":"https://api.github.com/users/top-drawer/repos","events_url":"https://api.github.com/users/top-drawer/events{/privacy}","received_events_url":"https://api.github.com/users/top-drawer/received_events","type":"Organization","site_admin":false},"repo":{"id":59865900,"name":"web","full_name":"top-drawer/web","owner":{"login":"top-drawer","id":19616133,"avatar_url":"https://avatars.githubusercontent.com/u/19616133?v=3","gravatar_id":"","url":"https://api.github.com/users/top-drawer","html_url":"https://github.com/top-drawer","followers_url":"https://api.github.com/users/top-drawer/followers","following_url":"https://api.github.com/users/top-drawer/following{/other_user}","gists_url":"https://api.github.com/users/top-drawer/gists{/gist_id}","starred_url":"https://api.github.com/users/top-drawer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/top-drawer/subscriptions","organizations_url":"https://api.github.com/users/top-drawer/orgs","repos_url":"https://api.github.com/users/top-drawer/repos","events_url":"https://api.github.com/users/top-drawer/events{/privacy}","received_events_url":"https://api.github.com/users/top-drawer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/top-drawer/web","description":"The website","fork":false,"url":"https://api.github.com/repos/top-drawer/web","forks_url":"https://api.github.com/repos/top-drawer/web/forks","keys_url":"https://api.github.com/repos/top-drawer/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/top-drawer/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/top-drawer/web/teams","hooks_url":"https://api.github.com/repos/top-drawer/web/hooks","issue_events_url":"https://api.github.com/repos/top-drawer/web/issues/events{/number}","events_url":"https://api.github.com/repos/top-drawer/web/events","assignees_url":"https://api.github.com/repos/top-drawer/web/assignees{/user}","branches_url":"https://api.github.com/repos/top-drawer/web/branches{/branch}","tags_url":"https://api.github.com/repos/top-drawer/web/tags","blobs_url":"https://api.github.com/repos/top-drawer/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/top-drawer/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/top-drawer/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/top-drawer/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/top-drawer/web/statuses/{sha}","languages_url":"https://api.github.com/repos/top-drawer/web/languages","stargazers_url":"https://api.github.com/repos/top-drawer/web/stargazers","contributors_url":"https://api.github.com/repos/top-drawer/web/contributors","subscribers_url":"https://api.github.com/repos/top-drawer/web/subscribers","subscription_url":"https://api.github.com/repos/top-drawer/web/subscription","commits_url":"https://api.github.com/repos/top-drawer/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/top-drawer/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/top-drawer/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/top-drawer/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/top-drawer/web/contents/{+path}","compare_url":"https://api.github.com/repos/top-drawer/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/top-drawer/web/merges","archive_url":"https://api.github.com/repos/top-drawer/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/top-drawer/web/downloads","issues_url":"https://api.github.com/repos/top-drawer/web/issues{/number}","pulls_url":"https://api.github.com/repos/top-drawer/web/pulls{/number}","milestones_url":"https://api.github.com/repos/top-drawer/web/milestones{/number}","notifications_url":"https://api.github.com/repos/top-drawer/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/top-drawer/web/labels{/name}","releases_url":"https://api.github.com/repos/top-drawer/web/releases{/id}","deployments_url":"https://api.github.com/repos/top-drawer/web/deployments","created_at":"2016-05-27T22:12:50Z","updated_at":"2016-06-21T00:48:41Z","pushed_at":"2016-07-13T03:41:46Z","git_url":"git://github.com/top-drawer/web.git","ssh_url":"git@github.com:top-drawer/web.git","clone_url":"https://github.com/top-drawer/web.git","svn_url":"https://github.com/top-drawer/web","homepage":null,"size":209,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/top-drawer/web/pulls/9"},"html":{"href":"https://github.com/top-drawer/web/pull/9"},"issue":{"href":"https://api.github.com/repos/top-drawer/web/issues/9"},"comments":{"href":"https://api.github.com/repos/top-drawer/web/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/top-drawer/web/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/top-drawer/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/top-drawer/web/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/top-drawer/web/statuses/e320b31f8a15e1cde9a7dad594a418987ce44c7f"}}}}
{"actor":{"display_login":"taylorphillips"}}