{"action":"closed","number":435,"pull_request":{"url":"https://api.github.com/repos/sahat/hackathon-starter/pulls/435","id":67606842,"html_url":"https://github.com/sahat/hackathon-starter/pull/435","diff_url":"https://github.com/sahat/hackathon-starter/pull/435.diff","patch_url":"https://github.com/sahat/hackathon-starter/pull/435.patch","issue_url":"https://api.github.com/repos/sahat/hackathon-starter/issues/435","number":435,"state":"closed","locked":false,"title":"improve redirect after login","user":{"login":"deiucanta","id":2116280,"avatar_url":"https://avatars.githubusercontent.com/u/2116280?v=3","gravatar_id":"","url":"https://api.github.com/users/deiucanta","html_url":"https://github.com/deiucanta","followers_url":"https://api.github.com/users/deiucanta/followers","following_url":"https://api.github.com/users/deiucanta/following{/other_user}","gists_url":"https://api.github.com/users/deiucanta/gists{/gist_id}","starred_url":"https://api.github.com/users/deiucanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deiucanta/subscriptions","organizations_url":"https://api.github.com/users/deiucanta/orgs","repos_url":"https://api.github.com/users/deiucanta/repos","events_url":"https://api.github.com/users/deiucanta/events{/privacy}","received_events_url":"https://api.github.com/users/deiucanta/received_events","type":"User","site_admin":false},"body":"Instead of checking for explicit routes, this tries to exclude any unwanted routes and store anything else. All of the following 5 conditions have to be met in order to save the current path\r\n\r\n1. User must not be logged in (saves some resources)\r\n2. Route must not be `/login` (you don't want to get back to login after login)\r\n3. Route must not be `/signup` (same reason as above)\r\n4. Route must not start with `/auth` (same reason as above)\r\n5. Path does not contain a dot (this usually matches a file and you don't want to be redirected to `favicon.ico`)","created_at":"2016-04-23T13:33:48Z","updated_at":"2016-07-13T04:33:31Z","closed_at":"2016-07-13T04:33:31Z","merged_at":"2016-07-13T04:33:31Z","merge_commit_sha":"3399bfd0535f83de6525ec6d987699d7a253e3ee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sahat/hackathon-starter/pulls/435/commits","review_comments_url":"https://api.github.com/repos/sahat/hackathon-starter/pulls/435/comments","review_comment_url":"https://api.github.com/repos/sahat/hackathon-starter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sahat/hackathon-starter/issues/435/comments","statuses_url":"https://api.github.com/repos/sahat/hackathon-starter/statuses/3399bfd0535f83de6525ec6d987699d7a253e3ee","head":{"label":"deiucanta:master","ref":"master","sha":"3399bfd0535f83de6525ec6d987699d7a253e3ee","user":{"login":"deiucanta","id":2116280,"avatar_url":"https://avatars.githubusercontent.com/u/2116280?v=3","gravatar_id":"","url":"https://api.github.com/users/deiucanta","html_url":"https://github.com/deiucanta","followers_url":"https://api.github.com/users/deiucanta/followers","following_url":"https://api.github.com/users/deiucanta/following{/other_user}","gists_url":"https://api.github.com/users/deiucanta/gists{/gist_id}","starred_url":"https://api.github.com/users/deiucanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deiucanta/subscriptions","organizations_url":"https://api.github.com/users/deiucanta/orgs","repos_url":"https://api.github.com/users/deiucanta/repos","events_url":"https://api.github.com/users/deiucanta/events{/privacy}","received_events_url":"https://api.github.com/users/deiucanta/received_events","type":"User","site_admin":false},"repo":{"id":56920577,"name":"hackathon-starter","full_name":"deiucanta/hackathon-starter","owner":{"login":"deiucanta","id":2116280,"avatar_url":"https://avatars.githubusercontent.com/u/2116280?v=3","gravatar_id":"","url":"https://api.github.com/users/deiucanta","html_url":"https://github.com/deiucanta","followers_url":"https://api.github.com/users/deiucanta/followers","following_url":"https://api.github.com/users/deiucanta/following{/other_user}","gists_url":"https://api.github.com/users/deiucanta/gists{/gist_id}","starred_url":"https://api.github.com/users/deiucanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deiucanta/subscriptions","organizations_url":"https://api.github.com/users/deiucanta/orgs","repos_url":"https://api.github.com/users/deiucanta/repos","events_url":"https://api.github.com/users/deiucanta/events{/privacy}","received_events_url":"https://api.github.com/users/deiucanta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deiucanta/hackathon-starter","description":"A boilerplate for Node.js web applications","fork":true,"url":"https://api.github.com/repos/deiucanta/hackathon-starter","forks_url":"https://api.github.com/repos/deiucanta/hackathon-starter/forks","keys_url":"https://api.github.com/repos/deiucanta/hackathon-starter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deiucanta/hackathon-starter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deiucanta/hackathon-starter/teams","hooks_url":"https://api.github.com/repos/deiucanta/hackathon-starter/hooks","issue_events_url":"https://api.github.com/repos/deiucanta/hackathon-starter/issues/events{/number}","events_url":"https://api.github.com/repos/deiucanta/hackathon-starter/events","assignees_url":"https://api.github.com/repos/deiucanta/hackathon-starter/assignees{/user}","branches_url":"https://api.github.com/repos/deiucanta/hackathon-starter/branches{/branch}","tags_url":"https://api.github.com/repos/deiucanta/hackathon-starter/tags","blobs_url":"https://api.github.com/repos/deiucanta/hackathon-starter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deiucanta/hackathon-starter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deiucanta/hackathon-starter/git/refs{/sha}","trees_url":"https://api.github.com/repos/deiucanta/hackathon-starter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deiucanta/hackathon-starter/statuses/{sha}","languages_url":"https://api.github.com/repos/deiucanta/hackathon-starter/languages","stargazers_url":"https://api.github.com/repos/deiucanta/hackathon-starter/stargazers","contributors_url":"https://api.github.com/repos/deiucanta/hackathon-starter/contributors","subscribers_url":"https://api.github.com/repos/deiucanta/hackathon-starter/subscribers","subscription_url":"https://api.github.com/repos/deiucanta/hackathon-starter/subscription","commits_url":"https://api.github.com/repos/deiucanta/hackathon-starter/commits{/sha}","git_commits_url":"https://api.github.com/repos/deiucanta/hackathon-starter/git/commits{/sha}","comments_url":"https://api.github.com/repos/deiucanta/hackathon-starter/comments{/number}","issue_comment_url":"https://api.github.com/repos/deiucanta/hackathon-starter/issues/comments{/number}","contents_url":"https://api.github.com/repos/deiucanta/hackathon-starter/contents/{+path}","compare_url":"https://api.github.com/repos/deiucanta/hackathon-starter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deiucanta/hackathon-starter/merges","archive_url":"https://api.github.com/repos/deiucanta/hackathon-starter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deiucanta/hackathon-starter/downloads","issues_url":"https://api.github.com/repos/deiucanta/hackathon-starter/issues{/number}","pulls_url":"https://api.github.com/repos/deiucanta/hackathon-starter/pulls{/number}","milestones_url":"https://api.github.com/repos/deiucanta/hackathon-starter/milestones{/number}","notifications_url":"https://api.github.com/repos/deiucanta/hackathon-starter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deiucanta/hackathon-starter/labels{/name}","releases_url":"https://api.github.com/repos/deiucanta/hackathon-starter/releases{/id}","deployments_url":"https://api.github.com/repos/deiucanta/hackathon-starter/deployments","created_at":"2016-04-23T13:27:43Z","updated_at":"2016-04-23T13:27:44Z","pushed_at":"2016-04-23T13:35:37Z","git_url":"git://github.com/deiucanta/hackathon-starter.git","ssh_url":"git@github.com:deiucanta/hackathon-starter.git","clone_url":"https://github.com/deiucanta/hackathon-starter.git","svn_url":"https://github.com/deiucanta/hackathon-starter","homepage":"http://hackathonstarter.herokuapp.com","size":8525,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sahat:master","ref":"master","sha":"4e40745a5e66d20eb8d9508bed4e7051d15fc311","user":{"login":"sahat","id":544954,"avatar_url":"https://avatars.githubusercontent.com/u/544954?v=3","gravatar_id":"","url":"https://api.github.com/users/sahat","html_url":"https://github.com/sahat","followers_url":"https://api.github.com/users/sahat/followers","following_url":"https://api.github.com/users/sahat/following{/other_user}","gists_url":"https://api.github.com/users/sahat/gists{/gist_id}","starred_url":"https://api.github.com/users/sahat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahat/subscriptions","organizations_url":"https://api.github.com/users/sahat/orgs","repos_url":"https://api.github.com/users/sahat/repos","events_url":"https://api.github.com/users/sahat/events{/privacy}","received_events_url":"https://api.github.com/users/sahat/received_events","type":"User","site_admin":false},"repo":{"id":14370955,"name":"hackathon-starter","full_name":"sahat/hackathon-starter","owner":{"login":"sahat","id":544954,"avatar_url":"https://avatars.githubusercontent.com/u/544954?v=3","gravatar_id":"","url":"https://api.github.com/users/sahat","html_url":"https://github.com/sahat","followers_url":"https://api.github.com/users/sahat/followers","following_url":"https://api.github.com/users/sahat/following{/other_user}","gists_url":"https://api.github.com/users/sahat/gists{/gist_id}","starred_url":"https://api.github.com/users/sahat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahat/subscriptions","organizations_url":"https://api.github.com/users/sahat/orgs","repos_url":"https://api.github.com/users/sahat/repos","events_url":"https://api.github.com/users/sahat/events{/privacy}","received_events_url":"https://api.github.com/users/sahat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sahat/hackathon-starter","description":"A boilerplate for Node.js web applications","fork":false,"url":"https://api.github.com/repos/sahat/hackathon-starter","forks_url":"https://api.github.com/repos/sahat/hackathon-starter/forks","keys_url":"https://api.github.com/repos/sahat/hackathon-starter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sahat/hackathon-starter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sahat/hackathon-starter/teams","hooks_url":"https://api.github.com/repos/sahat/hackathon-starter/hooks","issue_events_url":"https://api.github.com/repos/sahat/hackathon-starter/issues/events{/number}","events_url":"https://api.github.com/repos/sahat/hackathon-starter/events","assignees_url":"https://api.github.com/repos/sahat/hackathon-starter/assignees{/user}","branches_url":"https://api.github.com/repos/sahat/hackathon-starter/branches{/branch}","tags_url":"https://api.github.com/repos/sahat/hackathon-starter/tags","blobs_url":"https://api.github.com/repos/sahat/hackathon-starter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sahat/hackathon-starter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sahat/hackathon-starter/git/refs{/sha}","trees_url":"https://api.github.com/repos/sahat/hackathon-starter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sahat/hackathon-starter/statuses/{sha}","languages_url":"https://api.github.com/repos/sahat/hackathon-starter/languages","stargazers_url":"https://api.github.com/repos/sahat/hackathon-starter/stargazers","contributors_url":"https://api.github.com/repos/sahat/hackathon-starter/contributors","subscribers_url":"https://api.github.com/repos/sahat/hackathon-starter/subscribers","subscription_url":"https://api.github.com/repos/sahat/hackathon-starter/subscription","commits_url":"https://api.github.com/repos/sahat/hackathon-starter/commits{/sha}","git_commits_url":"https://api.github.com/repos/sahat/hackathon-starter/git/commits{/sha}","comments_url":"https://api.github.com/repos/sahat/hackathon-starter/comments{/number}","issue_comment_url":"https://api.github.com/repos/sahat/hackathon-starter/issues/comments{/number}","contents_url":"https://api.github.com/repos/sahat/hackathon-starter/contents/{+path}","compare_url":"https://api.github.com/repos/sahat/hackathon-starter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sahat/hackathon-starter/merges","archive_url":"https://api.github.com/repos/sahat/hackathon-starter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sahat/hackathon-starter/downloads","issues_url":"https://api.github.com/repos/sahat/hackathon-starter/issues{/number}","pulls_url":"https://api.github.com/repos/sahat/hackathon-starter/pulls{/number}","milestones_url":"https://api.github.com/repos/sahat/hackathon-starter/milestones{/number}","notifications_url":"https://api.github.com/repos/sahat/hackathon-starter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sahat/hackathon-starter/labels{/name}","releases_url":"https://api.github.com/repos/sahat/hackathon-starter/releases{/id}","deployments_url":"https://api.github.com/repos/sahat/hackathon-starter/deployments","created_at":"2013-11-13T17:24:12Z","updated_at":"2016-07-13T02:37:52Z","pushed_at":"2016-07-13T04:33:31Z","git_url":"git://github.com/sahat/hackathon-starter.git","ssh_url":"git@github.com:sahat/hackathon-starter.git","clone_url":"https://github.com/sahat/hackathon-starter.git","svn_url":"https://github.com/sahat/hackathon-starter","homepage":"http://hackathonstarter-sahat.rhcloud.com","size":18134,"stargazers_count":14272,"watchers_count":14272,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2358,"mirror_url":null,"open_issues_count":6,"forks":2358,"open_issues":6,"watchers":14272,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sahat/hackathon-starter/pulls/435"},"html":{"href":"https://github.com/sahat/hackathon-starter/pull/435"},"issue":{"href":"https://api.github.com/repos/sahat/hackathon-starter/issues/435"},"comments":{"href":"https://api.github.com/repos/sahat/hackathon-starter/issues/435/comments"},"review_comments":{"href":"https://api.github.com/repos/sahat/hackathon-starter/pulls/435/comments"},"review_comment":{"href":"https://api.github.com/repos/sahat/hackathon-starter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sahat/hackathon-starter/pulls/435/commits"},"statuses":{"href":"https://api.github.com/repos/sahat/hackathon-starter/statuses/3399bfd0535f83de6525ec6d987699d7a253e3ee"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sahat","id":544954,"avatar_url":"https://avatars.githubusercontent.com/u/544954?v=3","gravatar_id":"","url":"https://api.github.com/users/sahat","html_url":"https://github.com/sahat","followers_url":"https://api.github.com/users/sahat/followers","following_url":"https://api.github.com/users/sahat/following{/other_user}","gists_url":"https://api.github.com/users/sahat/gists{/gist_id}","starred_url":"https://api.github.com/users/sahat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahat/subscriptions","organizations_url":"https://api.github.com/users/sahat/orgs","repos_url":"https://api.github.com/users/sahat/repos","events_url":"https://api.github.com/users/sahat/events{/privacy}","received_events_url":"https://api.github.com/users/sahat/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":6,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"sahat"}}