{"action":"closed","number":13,"pull_request":{"url":"https://api.github.com/repos/projectjamjar/JamJar/pulls/13","id":65048719,"html_url":"https://github.com/projectjamjar/JamJar/pull/13","diff_url":"https://github.com/projectjamjar/JamJar/pull/13.diff","patch_url":"https://github.com/projectjamjar/JamJar/pull/13.patch","issue_url":"https://api.github.com/repos/projectjamjar/JamJar/issues/13","number":13,"state":"closed","locked":false,"title":"Redirect from login if authed","user":{"login":"drewbanin","id":1541139,"avatar_url":"https://avatars.githubusercontent.com/u/1541139?v=3","gravatar_id":"","url":"https://api.github.com/users/drewbanin","html_url":"https://github.com/drewbanin","followers_url":"https://api.github.com/users/drewbanin/followers","following_url":"https://api.github.com/users/drewbanin/following{/other_user}","gists_url":"https://api.github.com/users/drewbanin/gists{/gist_id}","starred_url":"https://api.github.com/users/drewbanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewbanin/subscriptions","organizations_url":"https://api.github.com/users/drewbanin/orgs","repos_url":"https://api.github.com/users/drewbanin/repos","events_url":"https://api.github.com/users/drewbanin/events{/privacy}","received_events_url":"https://api.github.com/users/drewbanin/received_events","type":"User","site_admin":false},"body":"this checks for an auth token and a user object. If both are missing, then the user is redirected to the discover page.\r\n\r\nIf, for some reason, the token is invalid (and 401 unauthorized is returned), the token and user object will be cleared and the user will be redirected back to the login page.","created_at":"2016-04-02T20:10:20Z","updated_at":"2016-04-04T23:47:05Z","closed_at":"2016-04-04T23:47:05Z","merged_at":"2016-04-04T23:47:05Z","merge_commit_sha":"722fae6a10761fc38d16b85311b4401f75afd61d","assignee":{"login":"drewbanin","id":1541139,"avatar_url":"https://avatars.githubusercontent.com/u/1541139?v=3","gravatar_id":"","url":"https://api.github.com/users/drewbanin","html_url":"https://github.com/drewbanin","followers_url":"https://api.github.com/users/drewbanin/followers","following_url":"https://api.github.com/users/drewbanin/following{/other_user}","gists_url":"https://api.github.com/users/drewbanin/gists{/gist_id}","starred_url":"https://api.github.com/users/drewbanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewbanin/subscriptions","organizations_url":"https://api.github.com/users/drewbanin/orgs","repos_url":"https://api.github.com/users/drewbanin/repos","events_url":"https://api.github.com/users/drewbanin/events{/privacy}","received_events_url":"https://api.github.com/users/drewbanin/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/projectjamjar/JamJar/pulls/13/commits","review_comments_url":"https://api.github.com/repos/projectjamjar/JamJar/pulls/13/comments","review_comment_url":"https://api.github.com/repos/projectjamjar/JamJar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectjamjar/JamJar/issues/13/comments","statuses_url":"https://api.github.com/repos/projectjamjar/JamJar/statuses/395bfe737780795db59fdad51c545664a25c3934","head":{"label":"projectjamjar:redirect-from-login-if-authed","ref":"redirect-from-login-if-authed","sha":"395bfe737780795db59fdad51c545664a25c3934","user":{"login":"projectjamjar","id":15257408,"avatar_url":"https://avatars.githubusercontent.com/u/15257408?v=3","gravatar_id":"","url":"https://api.github.com/users/projectjamjar","html_url":"https://github.com/projectjamjar","followers_url":"https://api.github.com/users/projectjamjar/followers","following_url":"https://api.github.com/users/projectjamjar/following{/other_user}","gists_url":"https://api.github.com/users/projectjamjar/gists{/gist_id}","starred_url":"https://api.github.com/users/projectjamjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectjamjar/subscriptions","organizations_url":"https://api.github.com/users/projectjamjar/orgs","repos_url":"https://api.github.com/users/projectjamjar/repos","events_url":"https://api.github.com/users/projectjamjar/events{/privacy}","received_events_url":"https://api.github.com/users/projectjamjar/received_events","type":"Organization","site_admin":false},"repo":{"id":43110519,"name":"JamJar","full_name":"projectjamjar/JamJar","owner":{"login":"projectjamjar","id":15257408,"avatar_url":"https://avatars.githubusercontent.com/u/15257408?v=3","gravatar_id":"","url":"https://api.github.com/users/projectjamjar","html_url":"https://github.com/projectjamjar","followers_url":"https://api.github.com/users/projectjamjar/followers","following_url":"https://api.github.com/users/projectjamjar/following{/other_user}","gists_url":"https://api.github.com/users/projectjamjar/gists{/gist_id}","starred_url":"https://api.github.com/users/projectjamjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectjamjar/subscriptions","organizations_url":"https://api.github.com/users/projectjamjar/orgs","repos_url":"https://api.github.com/users/projectjamjar/repos","events_url":"https://api.github.com/users/projectjamjar/events{/privacy}","received_events_url":"https://api.github.com/users/projectjamjar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectjamjar/JamJar","description":"The repository for the JamJar AngularJS Application!","fork":false,"url":"https://api.github.com/repos/projectjamjar/JamJar","forks_url":"https://api.github.com/repos/projectjamjar/JamJar/forks","keys_url":"https://api.github.com/repos/projectjamjar/JamJar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectjamjar/JamJar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectjamjar/JamJar/teams","hooks_url":"https://api.github.com/repos/projectjamjar/JamJar/hooks","issue_events_url":"https://api.github.com/repos/projectjamjar/JamJar/issues/events{/number}","events_url":"https://api.github.com/repos/projectjamjar/JamJar/events","assignees_url":"https://api.github.com/repos/projectjamjar/JamJar/assignees{/user}","branches_url":"https://api.github.com/repos/projectjamjar/JamJar/branches{/branch}","tags_url":"https://api.github.com/repos/projectjamjar/JamJar/tags","blobs_url":"https://api.github.com/repos/projectjamjar/JamJar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectjamjar/JamJar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectjamjar/JamJar/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectjamjar/JamJar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectjamjar/JamJar/statuses/{sha}","languages_url":"https://api.github.com/repos/projectjamjar/JamJar/languages","stargazers_url":"https://api.github.com/repos/projectjamjar/JamJar/stargazers","contributors_url":"https://api.github.com/repos/projectjamjar/JamJar/contributors","subscribers_url":"https://api.github.com/repos/projectjamjar/JamJar/subscribers","subscription_url":"https://api.github.com/repos/projectjamjar/JamJar/subscription","commits_url":"https://api.github.com/repos/projectjamjar/JamJar/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectjamjar/JamJar/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectjamjar/JamJar/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectjamjar/JamJar/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectjamjar/JamJar/contents/{+path}","compare_url":"https://api.github.com/repos/projectjamjar/JamJar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectjamjar/JamJar/merges","archive_url":"https://api.github.com/repos/projectjamjar/JamJar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectjamjar/JamJar/downloads","issues_url":"https://api.github.com/repos/projectjamjar/JamJar/issues{/number}","pulls_url":"https://api.github.com/repos/projectjamjar/JamJar/pulls{/number}","milestones_url":"https://api.github.com/repos/projectjamjar/JamJar/milestones{/number}","notifications_url":"https://api.github.com/repos/projectjamjar/JamJar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectjamjar/JamJar/labels{/name}","releases_url":"https://api.github.com/repos/projectjamjar/JamJar/releases{/id}","deployments_url":"https://api.github.com/repos/projectjamjar/JamJar/deployments","created_at":"2015-09-25T04:58:00Z","updated_at":"2016-02-15T00:38:10Z","pushed_at":"2016-04-04T23:47:05Z","git_url":"git://github.com/projectjamjar/JamJar.git","ssh_url":"git@github.com:projectjamjar/JamJar.git","clone_url":"https://github.com/projectjamjar/JamJar.git","svn_url":"https://github.com/projectjamjar/JamJar","homepage":"","size":48726,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"projectjamjar:develop","ref":"develop","sha":"7a3563aa4eb5b0a07cd147bd090bffc3b1da0c1b","user":{"login":"projectjamjar","id":15257408,"avatar_url":"https://avatars.githubusercontent.com/u/15257408?v=3","gravatar_id":"","url":"https://api.github.com/users/projectjamjar","html_url":"https://github.com/projectjamjar","followers_url":"https://api.github.com/users/projectjamjar/followers","following_url":"https://api.github.com/users/projectjamjar/following{/other_user}","gists_url":"https://api.github.com/users/projectjamjar/gists{/gist_id}","starred_url":"https://api.github.com/users/projectjamjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectjamjar/subscriptions","organizations_url":"https://api.github.com/users/projectjamjar/orgs","repos_url":"https://api.github.com/users/projectjamjar/repos","events_url":"https://api.github.com/users/projectjamjar/events{/privacy}","received_events_url":"https://api.github.com/users/projectjamjar/received_events","type":"Organization","site_admin":false},"repo":{"id":43110519,"name":"JamJar","full_name":"projectjamjar/JamJar","owner":{"login":"projectjamjar","id":15257408,"avatar_url":"https://avatars.githubusercontent.com/u/15257408?v=3","gravatar_id":"","url":"https://api.github.com/users/projectjamjar","html_url":"https://github.com/projectjamjar","followers_url":"https://api.github.com/users/projectjamjar/followers","following_url":"https://api.github.com/users/projectjamjar/following{/other_user}","gists_url":"https://api.github.com/users/projectjamjar/gists{/gist_id}","starred_url":"https://api.github.com/users/projectjamjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectjamjar/subscriptions","organizations_url":"https://api.github.com/users/projectjamjar/orgs","repos_url":"https://api.github.com/users/projectjamjar/repos","events_url":"https://api.github.com/users/projectjamjar/events{/privacy}","received_events_url":"https://api.github.com/users/projectjamjar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectjamjar/JamJar","description":"The repository for the JamJar AngularJS Application!","fork":false,"url":"https://api.github.com/repos/projectjamjar/JamJar","forks_url":"https://api.github.com/repos/projectjamjar/JamJar/forks","keys_url":"https://api.github.com/repos/projectjamjar/JamJar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectjamjar/JamJar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectjamjar/JamJar/teams","hooks_url":"https://api.github.com/repos/projectjamjar/JamJar/hooks","issue_events_url":"https://api.github.com/repos/projectjamjar/JamJar/issues/events{/number}","events_url":"https://api.github.com/repos/projectjamjar/JamJar/events","assignees_url":"https://api.github.com/repos/projectjamjar/JamJar/assignees{/user}","branches_url":"https://api.github.com/repos/projectjamjar/JamJar/branches{/branch}","tags_url":"https://api.github.com/repos/projectjamjar/JamJar/tags","blobs_url":"https://api.github.com/repos/projectjamjar/JamJar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectjamjar/JamJar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectjamjar/JamJar/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectjamjar/JamJar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectjamjar/JamJar/statuses/{sha}","languages_url":"https://api.github.com/repos/projectjamjar/JamJar/languages","stargazers_url":"https://api.github.com/repos/projectjamjar/JamJar/stargazers","contributors_url":"https://api.github.com/repos/projectjamjar/JamJar/contributors","subscribers_url":"https://api.github.com/repos/projectjamjar/JamJar/subscribers","subscription_url":"https://api.github.com/repos/projectjamjar/JamJar/subscription","commits_url":"https://api.github.com/repos/projectjamjar/JamJar/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectjamjar/JamJar/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectjamjar/JamJar/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectjamjar/JamJar/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectjamjar/JamJar/contents/{+path}","compare_url":"https://api.github.com/repos/projectjamjar/JamJar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectjamjar/JamJar/merges","archive_url":"https://api.github.com/repos/projectjamjar/JamJar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectjamjar/JamJar/downloads","issues_url":"https://api.github.com/repos/projectjamjar/JamJar/issues{/number}","pulls_url":"https://api.github.com/repos/projectjamjar/JamJar/pulls{/number}","milestones_url":"https://api.github.com/repos/projectjamjar/JamJar/milestones{/number}","notifications_url":"https://api.github.com/repos/projectjamjar/JamJar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectjamjar/JamJar/labels{/name}","releases_url":"https://api.github.com/repos/projectjamjar/JamJar/releases{/id}","deployments_url":"https://api.github.com/repos/projectjamjar/JamJar/deployments","created_at":"2015-09-25T04:58:00Z","updated_at":"2016-02-15T00:38:10Z","pushed_at":"2016-04-04T23:47:05Z","git_url":"git://github.com/projectjamjar/JamJar.git","ssh_url":"git@github.com:projectjamjar/JamJar.git","clone_url":"https://github.com/projectjamjar/JamJar.git","svn_url":"https://github.com/projectjamjar/JamJar","homepage":"","size":48726,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectjamjar/JamJar/pulls/13"},"html":{"href":"https://github.com/projectjamjar/JamJar/pull/13"},"issue":{"href":"https://api.github.com/repos/projectjamjar/JamJar/issues/13"},"comments":{"href":"https://api.github.com/repos/projectjamjar/JamJar/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/projectjamjar/JamJar/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/projectjamjar/JamJar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectjamjar/JamJar/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/projectjamjar/JamJar/statuses/395bfe737780795db59fdad51c545664a25c3934"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"drewbanin","id":1541139,"avatar_url":"https://avatars.githubusercontent.com/u/1541139?v=3","gravatar_id":"","url":"https://api.github.com/users/drewbanin","html_url":"https://github.com/drewbanin","followers_url":"https://api.github.com/users/drewbanin/followers","following_url":"https://api.github.com/users/drewbanin/following{/other_user}","gists_url":"https://api.github.com/users/drewbanin/gists{/gist_id}","starred_url":"https://api.github.com/users/drewbanin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewbanin/subscriptions","organizations_url":"https://api.github.com/users/drewbanin/orgs","repos_url":"https://api.github.com/users/drewbanin/repos","events_url":"https://api.github.com/users/drewbanin/events{/privacy}","received_events_url":"https://api.github.com/users/drewbanin/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":9,"deletions":1,"changed_files":2}}