{"action":"created","comment":{"url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/comments/177158686","pull_request_review_id":106982709,"id":177158686,"diff_hunk":"@@ -0,0 +1,18 @@\n+class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController\n+  def facebook\n+    # You need to implement the method below in your model (e.g. app/models/user.rb)\n+    @user = User.from_omniauth(request.env[\"omniauth.auth\"])\n+\n+    if @user.persisted?\n+      sign_in_and_redirect @user, event: :authentication #this will throw if @user is not activated\n+      set_flash_message(:notice, :success, kind: \"Facebook\") if is_navigational_format?","path":"app/controllers/users/omniauth_callbacks_controller.rb","position":8,"original_position":8,"commit_id":"62b2184c854a95c4b03dde3bdab2ce93d3172c58","original_commit_id":"62b2184c854a95c4b03dde3bdab2ce93d3172c58","user":{"login":"stivan622","id":20553255,"avatar_url":"https://avatars1.githubusercontent.com/u/20553255?v=4","gravatar_id":"","url":"https://api.github.com/users/stivan622","html_url":"https://github.com/stivan622","followers_url":"https://api.github.com/users/stivan622/followers","following_url":"https://api.github.com/users/stivan622/following{/other_user}","gists_url":"https://api.github.com/users/stivan622/gists{/gist_id}","starred_url":"https://api.github.com/users/stivan622/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stivan622/subscriptions","organizations_url":"https://api.github.com/users/stivan622/orgs","repos_url":"https://api.github.com/users/stivan622/repos","events_url":"https://api.github.com/users/stivan622/events{/privacy}","received_events_url":"https://api.github.com/users/stivan622/received_events","type":"User","site_admin":false},"body":"日本語化はされていますか？","created_at":"2018-03-26T16:43:17Z","updated_at":"2018-03-26T16:44:31Z","html_url":"https://github.com/ikedaCoffee/quasi-case-exam/pull/11#discussion_r177158686","pull_request_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/11","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/comments/177158686"},"html":{"href":"https://github.com/ikedaCoffee/quasi-case-exam/pull/11#discussion_r177158686"},"pull_request":{"href":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/11","id":177255413,"html_url":"https://github.com/ikedaCoffee/quasi-case-exam/pull/11","diff_url":"https://github.com/ikedaCoffee/quasi-case-exam/pull/11.diff","patch_url":"https://github.com/ikedaCoffee/quasi-case-exam/pull/11.patch","issue_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/issues/11","number":11,"state":"open","locked":false,"title":"Facebookログインの実装","user":{"login":"ikedaCoffee","id":25954028,"avatar_url":"https://avatars0.githubusercontent.com/u/25954028?v=4","gravatar_id":"","url":"https://api.github.com/users/ikedaCoffee","html_url":"https://github.com/ikedaCoffee","followers_url":"https://api.github.com/users/ikedaCoffee/followers","following_url":"https://api.github.com/users/ikedaCoffee/following{/other_user}","gists_url":"https://api.github.com/users/ikedaCoffee/gists{/gist_id}","starred_url":"https://api.github.com/users/ikedaCoffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikedaCoffee/subscriptions","organizations_url":"https://api.github.com/users/ikedaCoffee/orgs","repos_url":"https://api.github.com/users/ikedaCoffee/repos","events_url":"https://api.github.com/users/ikedaCoffee/events{/privacy}","received_events_url":"https://api.github.com/users/ikedaCoffee/received_events","type":"User","site_admin":false},"body":"#10 \r\n\r\n- gem導入（devise、omniauth、omniauth-facebook）\r\n- [こちら](https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview)を参考にFacebookログインを実装\r\n  - userにnameカラムとimageカラムを追加することに注意\r\n  - [こちら](https://diver.diveintocode.jp/affiliations/textbooks/653)も参照\r\n- fontawsome4を導入（下記を参考）\r\n  - https://qiita.com/daichirata/items/1b99519c5436cf98d44b\r\n  - https://github.com/rails/webpacker/issues/1119\r\n- レイアウト調整（bootstrap使用）\r\n- develpment環境でのみデバック情報が表示されるようにした\r\n\r\n\r\n  ","created_at":"2018-03-24T19:47:19Z","updated_at":"2018-03-26T16:44:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4130ec70d69e90d0effc39bec93d34419584f48c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/11/commits","review_comments_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/11/comments","review_comment_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/issues/11/comments","statuses_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/statuses/62b2184c854a95c4b03dde3bdab2ce93d3172c58","head":{"label":"ikedaCoffee:issues#10","ref":"issues#10","sha":"62b2184c854a95c4b03dde3bdab2ce93d3172c58","user":{"login":"ikedaCoffee","id":25954028,"avatar_url":"https://avatars0.githubusercontent.com/u/25954028?v=4","gravatar_id":"","url":"https://api.github.com/users/ikedaCoffee","html_url":"https://github.com/ikedaCoffee","followers_url":"https://api.github.com/users/ikedaCoffee/followers","following_url":"https://api.github.com/users/ikedaCoffee/following{/other_user}","gists_url":"https://api.github.com/users/ikedaCoffee/gists{/gist_id}","starred_url":"https://api.github.com/users/ikedaCoffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikedaCoffee/subscriptions","organizations_url":"https://api.github.com/users/ikedaCoffee/orgs","repos_url":"https://api.github.com/users/ikedaCoffee/repos","events_url":"https://api.github.com/users/ikedaCoffee/events{/privacy}","received_events_url":"https://api.github.com/users/ikedaCoffee/received_events","type":"User","site_admin":false},"repo":{"id":122187841,"name":"quasi-case-exam","full_name":"ikedaCoffee/quasi-case-exam","owner":{"login":"ikedaCoffee","id":25954028,"avatar_url":"https://avatars0.githubusercontent.com/u/25954028?v=4","gravatar_id":"","url":"https://api.github.com/users/ikedaCoffee","html_url":"https://github.com/ikedaCoffee","followers_url":"https://api.github.com/users/ikedaCoffee/followers","following_url":"https://api.github.com/users/ikedaCoffee/following{/other_user}","gists_url":"https://api.github.com/users/ikedaCoffee/gists{/gist_id}","starred_url":"https://api.github.com/users/ikedaCoffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikedaCoffee/subscriptions","organizations_url":"https://api.github.com/users/ikedaCoffee/orgs","repos_url":"https://api.github.com/users/ikedaCoffee/repos","events_url":"https://api.github.com/users/ikedaCoffee/events{/privacy}","received_events_url":"https://api.github.com/users/ikedaCoffee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ikedaCoffee/quasi-case-exam","description":null,"fork":false,"url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam","forks_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/forks","keys_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/teams","hooks_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/hooks","issue_events_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/issues/events{/number}","events_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/events","assignees_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/assignees{/user}","branches_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/branches{/branch}","tags_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/tags","blobs_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/git/refs{/sha}","trees_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/statuses/{sha}","languages_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/languages","stargazers_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/stargazers","contributors_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/contributors","subscribers_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/subscribers","subscription_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/subscription","commits_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/commits{/sha}","git_commits_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/git/commits{/sha}","comments_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/comments{/number}","issue_comment_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/issues/comments{/number}","contents_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/contents/{+path}","compare_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/merges","archive_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/downloads","issues_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/issues{/number}","pulls_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls{/number}","milestones_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/milestones{/number}","notifications_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/labels{/name}","releases_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/releases{/id}","deployments_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/deployments","created_at":"2018-02-20T11:09:01Z","updated_at":"2018-03-18T07:09:10Z","pushed_at":"2018-03-24T20:40:34Z","git_url":"git://github.com/ikedaCoffee/quasi-case-exam.git","ssh_url":"git@github.com:ikedaCoffee/quasi-case-exam.git","clone_url":"https://github.com/ikedaCoffee/quasi-case-exam.git","svn_url":"https://github.com/ikedaCoffee/quasi-case-exam","homepage":null,"size":256,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"develop"}},"base":{"label":"ikedaCoffee:develop","ref":"develop","sha":"693e944bd8b8b7cf002128e78833a6359d69f57b","user":{"login":"ikedaCoffee","id":25954028,"avatar_url":"https://avatars0.githubusercontent.com/u/25954028?v=4","gravatar_id":"","url":"https://api.github.com/users/ikedaCoffee","html_url":"https://github.com/ikedaCoffee","followers_url":"https://api.github.com/users/ikedaCoffee/followers","following_url":"https://api.github.com/users/ikedaCoffee/following{/other_user}","gists_url":"https://api.github.com/users/ikedaCoffee/gists{/gist_id}","starred_url":"https://api.github.com/users/ikedaCoffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikedaCoffee/subscriptions","organizations_url":"https://api.github.com/users/ikedaCoffee/orgs","repos_url":"https://api.github.com/users/ikedaCoffee/repos","events_url":"https://api.github.com/users/ikedaCoffee/events{/privacy}","received_events_url":"https://api.github.com/users/ikedaCoffee/received_events","type":"User","site_admin":false},"repo":{"id":122187841,"name":"quasi-case-exam","full_name":"ikedaCoffee/quasi-case-exam","owner":{"login":"ikedaCoffee","id":25954028,"avatar_url":"https://avatars0.githubusercontent.com/u/25954028?v=4","gravatar_id":"","url":"https://api.github.com/users/ikedaCoffee","html_url":"https://github.com/ikedaCoffee","followers_url":"https://api.github.com/users/ikedaCoffee/followers","following_url":"https://api.github.com/users/ikedaCoffee/following{/other_user}","gists_url":"https://api.github.com/users/ikedaCoffee/gists{/gist_id}","starred_url":"https://api.github.com/users/ikedaCoffee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikedaCoffee/subscriptions","organizations_url":"https://api.github.com/users/ikedaCoffee/orgs","repos_url":"https://api.github.com/users/ikedaCoffee/repos","events_url":"https://api.github.com/users/ikedaCoffee/events{/privacy}","received_events_url":"https://api.github.com/users/ikedaCoffee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ikedaCoffee/quasi-case-exam","description":null,"fork":false,"url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam","forks_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/forks","keys_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/teams","hooks_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/hooks","issue_events_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/issues/events{/number}","events_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/events","assignees_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/assignees{/user}","branches_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/branches{/branch}","tags_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/tags","blobs_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/git/refs{/sha}","trees_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/statuses/{sha}","languages_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/languages","stargazers_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/stargazers","contributors_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/contributors","subscribers_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/subscribers","subscription_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/subscription","commits_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/commits{/sha}","git_commits_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/git/commits{/sha}","comments_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/comments{/number}","issue_comment_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/issues/comments{/number}","contents_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/contents/{+path}","compare_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/merges","archive_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/downloads","issues_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/issues{/number}","pulls_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls{/number}","milestones_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/milestones{/number}","notifications_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/labels{/name}","releases_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/releases{/id}","deployments_url":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/deployments","created_at":"2018-02-20T11:09:01Z","updated_at":"2018-03-18T07:09:10Z","pushed_at":"2018-03-24T20:40:34Z","git_url":"git://github.com/ikedaCoffee/quasi-case-exam.git","ssh_url":"git@github.com:ikedaCoffee/quasi-case-exam.git","clone_url":"https://github.com/ikedaCoffee/quasi-case-exam.git","svn_url":"https://github.com/ikedaCoffee/quasi-case-exam","homepage":null,"size":256,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/11"},"html":{"href":"https://github.com/ikedaCoffee/quasi-case-exam/pull/11"},"issue":{"href":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/issues/11"},"comments":{"href":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/ikedaCoffee/quasi-case-exam/statuses/62b2184c854a95c4b03dde3bdab2ce93d3172c58"}},"author_association":"OWNER"}}
{"actor":{"display_login":"stivan622"}}