{"action":"created","comment":{"url":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/comments/72281021","id":72281021,"diff_hunk":"@@ -21,15 +21,15 @@\n     </div>\n \n     <ul class=\"usa-accordion sidenav-list\">\n-      <% if @current_user.admin? %>\n+      <% if @current_user && @current_user.admin? %>","path":"app/views/layouts/application.html.erb","position":5,"original_position":5,"commit_id":"a7627ef39589157c365415f9a6cbebc6d54f2f45","original_commit_id":"a7627ef39589157c365415f9a6cbebc6d54f2f45","user":{"login":"jessieay","id":601515,"avatar_url":"https://avatars.githubusercontent.com/u/601515?v=3","gravatar_id":"","url":"https://api.github.com/users/jessieay","html_url":"https://github.com/jessieay","followers_url":"https://api.github.com/users/jessieay/followers","following_url":"https://api.github.com/users/jessieay/following{/other_user}","gists_url":"https://api.github.com/users/jessieay/gists{/gist_id}","starred_url":"https://api.github.com/users/jessieay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessieay/subscriptions","organizations_url":"https://api.github.com/users/jessieay/orgs","repos_url":"https://api.github.com/users/jessieay/repos","events_url":"https://api.github.com/users/jessieay/events{/privacy}","received_events_url":"https://api.github.com/users/jessieay/received_events","type":"User","site_admin":false},"body":"maybe we can create a method called `signed_in_as_admin?` that does both these checks","created_at":"2016-07-26T16:03:37Z","updated_at":"2016-07-26T16:03:37Z","html_url":"https://github.com/18F/dolores-landingham-bot/pull/202#discussion_r72281021","pull_request_url":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/202","_links":{"self":{"href":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/comments/72281021"},"html":{"href":"https://github.com/18F/dolores-landingham-bot/pull/202#discussion_r72281021"},"pull_request":{"href":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/202"}}},"pull_request":{"url":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/202","id":78583829,"html_url":"https://github.com/18F/dolores-landingham-bot/pull/202","diff_url":"https://github.com/18F/dolores-landingham-bot/pull/202.diff","patch_url":"https://github.com/18F/dolores-landingham-bot/pull/202.patch","issue_url":"https://api.github.com/repos/18F/dolores-landingham-bot/issues/202","number":202,"state":"open","locked":false,"title":"added login button and ability to sign out","user":{"login":"timbo815","id":16897262,"avatar_url":"https://avatars.githubusercontent.com/u/16897262?v=3","gravatar_id":"","url":"https://api.github.com/users/timbo815","html_url":"https://github.com/timbo815","followers_url":"https://api.github.com/users/timbo815/followers","following_url":"https://api.github.com/users/timbo815/following{/other_user}","gists_url":"https://api.github.com/users/timbo815/gists{/gist_id}","starred_url":"https://api.github.com/users/timbo815/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbo815/subscriptions","organizations_url":"https://api.github.com/users/timbo815/orgs","repos_url":"https://api.github.com/users/timbo815/repos","events_url":"https://api.github.com/users/timbo815/events{/privacy}","received_events_url":"https://api.github.com/users/timbo815/received_events","type":"User","site_admin":false},"body":"Fixes issue(s) #197 #198\r\n\r\nChanges proposed in this pull request:\r\n\r\n-visiting \"/\" redirects to sign in page\r\n-when signed in, sign out button is visible in sidebar\r\n![screen shot 2016-07-23 at 6 10 23 pm](https://cloud.githubusercontent.com/assets/16897262/17080511/ce94cdc2-5100-11e6-923b-9e0e8899d0bf.png)\r\n![screen shot 2016-07-23 at 6 10 34 pm](https://cloud.githubusercontent.com/assets/16897262/17080512/d2c1483a-5100-11e6-95c8-30f91feca4ea.png)\r\n\r\n\r\n","created_at":"2016-07-23T22:11:34Z","updated_at":"2016-07-26T16:03:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfc93441e3ffeac4b292daf8f54633e73f42c562","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/202/commits","review_comments_url":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/202/comments","review_comment_url":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/dolores-landingham-bot/issues/202/comments","statuses_url":"https://api.github.com/repos/18F/dolores-landingham-bot/statuses/a7627ef39589157c365415f9a6cbebc6d54f2f45","head":{"label":"timbo815:create_sessions_controller","ref":"create_sessions_controller","sha":"a7627ef39589157c365415f9a6cbebc6d54f2f45","user":{"login":"timbo815","id":16897262,"avatar_url":"https://avatars.githubusercontent.com/u/16897262?v=3","gravatar_id":"","url":"https://api.github.com/users/timbo815","html_url":"https://github.com/timbo815","followers_url":"https://api.github.com/users/timbo815/followers","following_url":"https://api.github.com/users/timbo815/following{/other_user}","gists_url":"https://api.github.com/users/timbo815/gists{/gist_id}","starred_url":"https://api.github.com/users/timbo815/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbo815/subscriptions","organizations_url":"https://api.github.com/users/timbo815/orgs","repos_url":"https://api.github.com/users/timbo815/repos","events_url":"https://api.github.com/users/timbo815/events{/privacy}","received_events_url":"https://api.github.com/users/timbo815/received_events","type":"User","site_admin":false},"repo":{"id":64033572,"name":"dolores-landingham-bot","full_name":"timbo815/dolores-landingham-bot","owner":{"login":"timbo815","id":16897262,"avatar_url":"https://avatars.githubusercontent.com/u/16897262?v=3","gravatar_id":"","url":"https://api.github.com/users/timbo815","html_url":"https://github.com/timbo815","followers_url":"https://api.github.com/users/timbo815/followers","following_url":"https://api.github.com/users/timbo815/following{/other_user}","gists_url":"https://api.github.com/users/timbo815/gists{/gist_id}","starred_url":"https://api.github.com/users/timbo815/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timbo815/subscriptions","organizations_url":"https://api.github.com/users/timbo815/orgs","repos_url":"https://api.github.com/users/timbo815/repos","events_url":"https://api.github.com/users/timbo815/events{/privacy}","received_events_url":"https://api.github.com/users/timbo815/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timbo815/dolores-landingham-bot","description":"A Slack bot to welcome new 18F hires with the authority and compassion of Mrs. Landingham","fork":true,"url":"https://api.github.com/repos/timbo815/dolores-landingham-bot","forks_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/forks","keys_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/teams","hooks_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/hooks","issue_events_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/issues/events{/number}","events_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/events","assignees_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/assignees{/user}","branches_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/branches{/branch}","tags_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/tags","blobs_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/languages","stargazers_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/stargazers","contributors_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/contributors","subscribers_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/subscribers","subscription_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/subscription","commits_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/contents/{+path}","compare_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/merges","archive_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/downloads","issues_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/issues{/number}","pulls_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/labels{/name}","releases_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/releases{/id}","deployments_url":"https://api.github.com/repos/timbo815/dolores-landingham-bot/deployments","created_at":"2016-07-23T19:58:43Z","updated_at":"2016-07-23T19:58:44Z","pushed_at":"2016-07-23T22:07:42Z","git_url":"git://github.com/timbo815/dolores-landingham-bot.git","ssh_url":"git@github.com:timbo815/dolores-landingham-bot.git","clone_url":"https://github.com/timbo815/dolores-landingham-bot.git","svn_url":"https://github.com/timbo815/dolores-landingham-bot","homepage":"https://18f.gsa.gov/2015/12/15/how-bot-named-dolores-landingham-transformed-18fs-onboarding/","size":685,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"18F:master","ref":"master","sha":"5acf231c37ab6b812c6c763b0d230f52d633507e","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":42547221,"name":"dolores-landingham-bot","full_name":"18F/dolores-landingham-bot","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/dolores-landingham-bot","description":"A Slack bot to welcome new 18F hires with the authority and compassion of Mrs. Landingham","fork":false,"url":"https://api.github.com/repos/18F/dolores-landingham-bot","forks_url":"https://api.github.com/repos/18F/dolores-landingham-bot/forks","keys_url":"https://api.github.com/repos/18F/dolores-landingham-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/dolores-landingham-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/dolores-landingham-bot/teams","hooks_url":"https://api.github.com/repos/18F/dolores-landingham-bot/hooks","issue_events_url":"https://api.github.com/repos/18F/dolores-landingham-bot/issues/events{/number}","events_url":"https://api.github.com/repos/18F/dolores-landingham-bot/events","assignees_url":"https://api.github.com/repos/18F/dolores-landingham-bot/assignees{/user}","branches_url":"https://api.github.com/repos/18F/dolores-landingham-bot/branches{/branch}","tags_url":"https://api.github.com/repos/18F/dolores-landingham-bot/tags","blobs_url":"https://api.github.com/repos/18F/dolores-landingham-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/dolores-landingham-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/dolores-landingham-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/dolores-landingham-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/dolores-landingham-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/dolores-landingham-bot/languages","stargazers_url":"https://api.github.com/repos/18F/dolores-landingham-bot/stargazers","contributors_url":"https://api.github.com/repos/18F/dolores-landingham-bot/contributors","subscribers_url":"https://api.github.com/repos/18F/dolores-landingham-bot/subscribers","subscription_url":"https://api.github.com/repos/18F/dolores-landingham-bot/subscription","commits_url":"https://api.github.com/repos/18F/dolores-landingham-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/dolores-landingham-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/dolores-landingham-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/dolores-landingham-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/dolores-landingham-bot/contents/{+path}","compare_url":"https://api.github.com/repos/18F/dolores-landingham-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/dolores-landingham-bot/merges","archive_url":"https://api.github.com/repos/18F/dolores-landingham-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/dolores-landingham-bot/downloads","issues_url":"https://api.github.com/repos/18F/dolores-landingham-bot/issues{/number}","pulls_url":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/dolores-landingham-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/dolores-landingham-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/dolores-landingham-bot/labels{/name}","releases_url":"https://api.github.com/repos/18F/dolores-landingham-bot/releases{/id}","deployments_url":"https://api.github.com/repos/18F/dolores-landingham-bot/deployments","created_at":"2015-09-15T21:19:01Z","updated_at":"2016-07-23T14:17:51Z","pushed_at":"2016-07-24T11:51:06Z","git_url":"git://github.com/18F/dolores-landingham-bot.git","ssh_url":"git@github.com:18F/dolores-landingham-bot.git","clone_url":"https://github.com/18F/dolores-landingham-bot.git","svn_url":"https://github.com/18F/dolores-landingham-bot","homepage":"https://18f.gsa.gov/2015/12/15/how-bot-named-dolores-landingham-transformed-18fs-onboarding/","size":734,"stargazers_count":129,"watchers_count":129,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":33,"forks":47,"open_issues":33,"watchers":129,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/202"},"html":{"href":"https://github.com/18F/dolores-landingham-bot/pull/202"},"issue":{"href":"https://api.github.com/repos/18F/dolores-landingham-bot/issues/202"},"comments":{"href":"https://api.github.com/repos/18F/dolores-landingham-bot/issues/202/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/202/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/dolores-landingham-bot/pulls/202/commits"},"statuses":{"href":"https://api.github.com/repos/18F/dolores-landingham-bot/statuses/a7627ef39589157c365415f9a6cbebc6d54f2f45"}}}}
{"actor":{"display_login":"jessieay"}}