{"action":"created","comment":{"url":"https://api.github.com/repos/Yinaura/jagi/pulls/comments/36831585","id":36831585,"diff_hunk":"@@ -0,0 +1,12 @@\n+class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController\n+  def google_oauth2\n+    @user = User.find_for_google_oauth2(request.env[\"omniauth.auth\"])\n+    if @user.persisted?\n+      flash[:notice] = I18n.t \"devise.omniauth_callbacks.success\", :kind => \"Google\"\n+      sign_in_and_redirect @user, :event => :authentication\n+    else\n+      session[\"devise.google_data\"] = request.env[\"omniauth.auth\"]\n+      redirect_to new_user_registration_url","path":"app/controllers/users/omniauth_callbacks_controller.rb","position":9,"original_position":9,"commit_id":"703eabb5d6907a6067d8c06b34d21e4e8a670d7a","original_commit_id":"703eabb5d6907a6067d8c06b34d21e4e8a670d7a","user":{"login":"Yinaura","id":13635059,"avatar_url":"https://avatars.githubusercontent.com/u/13635059?v=3","gravatar_id":"","url":"https://api.github.com/users/Yinaura","html_url":"https://github.com/Yinaura","followers_url":"https://api.github.com/users/Yinaura/followers","following_url":"https://api.github.com/users/Yinaura/following{/other_user}","gists_url":"https://api.github.com/users/Yinaura/gists{/gist_id}","starred_url":"https://api.github.com/users/Yinaura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yinaura/subscriptions","organizations_url":"https://api.github.com/users/Yinaura/orgs","repos_url":"https://api.github.com/users/Yinaura/repos","events_url":"https://api.github.com/users/Yinaura/events{/privacy}","received_events_url":"https://api.github.com/users/Yinaura/received_events","type":"User","site_admin":false},"body":"対応します！","created_at":"2015-08-12T07:04:49Z","updated_at":"2015-08-12T07:04:49Z","html_url":"https://github.com/Yinaura/jagi/pull/10#discussion_r36831585","pull_request_url":"https://api.github.com/repos/Yinaura/jagi/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/comments/36831585"},"html":{"href":"https://github.com/Yinaura/jagi/pull/10#discussion_r36831585"},"pull_request":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/Yinaura/jagi/pulls/10","id":42084139,"html_url":"https://github.com/Yinaura/jagi/pull/10","diff_url":"https://github.com/Yinaura/jagi/pull/10.diff","patch_url":"https://github.com/Yinaura/jagi/pull/10.patch","issue_url":"https://api.github.com/repos/Yinaura/jagi/issues/10","number":10,"state":"open","locked":false,"title":"GoogleAPIログイン機能を追加","user":{"login":"Yinaura","id":13635059,"avatar_url":"https://avatars.githubusercontent.com/u/13635059?v=3","gravatar_id":"","url":"https://api.github.com/users/Yinaura","html_url":"https://github.com/Yinaura","followers_url":"https://api.github.com/users/Yinaura/followers","following_url":"https://api.github.com/users/Yinaura/following{/other_user}","gists_url":"https://api.github.com/users/Yinaura/gists{/gist_id}","starred_url":"https://api.github.com/users/Yinaura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yinaura/subscriptions","organizations_url":"https://api.github.com/users/Yinaura/orgs","repos_url":"https://api.github.com/users/Yinaura/repos","events_url":"https://api.github.com/users/Yinaura/events{/privacy}","received_events_url":"https://api.github.com/users/Yinaura/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-11T01:26:06Z","updated_at":"2015-08-12T07:04:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a437c17d6c41df620bfc986605d416b00ff6629a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yinaura/jagi/pulls/10/commits","review_comments_url":"https://api.github.com/repos/Yinaura/jagi/pulls/10/comments","review_comment_url":"https://api.github.com/repos/Yinaura/jagi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yinaura/jagi/issues/10/comments","statuses_url":"https://api.github.com/repos/Yinaura/jagi/statuses/703eabb5d6907a6067d8c06b34d21e4e8a670d7a","head":{"label":"Yinaura:google-api-login","ref":"google-api-login","sha":"703eabb5d6907a6067d8c06b34d21e4e8a670d7a","user":{"login":"Yinaura","id":13635059,"avatar_url":"https://avatars.githubusercontent.com/u/13635059?v=3","gravatar_id":"","url":"https://api.github.com/users/Yinaura","html_url":"https://github.com/Yinaura","followers_url":"https://api.github.com/users/Yinaura/followers","following_url":"https://api.github.com/users/Yinaura/following{/other_user}","gists_url":"https://api.github.com/users/Yinaura/gists{/gist_id}","starred_url":"https://api.github.com/users/Yinaura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yinaura/subscriptions","organizations_url":"https://api.github.com/users/Yinaura/orgs","repos_url":"https://api.github.com/users/Yinaura/repos","events_url":"https://api.github.com/users/Yinaura/events{/privacy}","received_events_url":"https://api.github.com/users/Yinaura/received_events","type":"User","site_admin":false},"repo":{"id":40160096,"name":"jagi","full_name":"Yinaura/jagi","owner":{"login":"Yinaura","id":13635059,"avatar_url":"https://avatars.githubusercontent.com/u/13635059?v=3","gravatar_id":"","url":"https://api.github.com/users/Yinaura","html_url":"https://github.com/Yinaura","followers_url":"https://api.github.com/users/Yinaura/followers","following_url":"https://api.github.com/users/Yinaura/following{/other_user}","gists_url":"https://api.github.com/users/Yinaura/gists{/gist_id}","starred_url":"https://api.github.com/users/Yinaura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yinaura/subscriptions","organizations_url":"https://api.github.com/users/Yinaura/orgs","repos_url":"https://api.github.com/users/Yinaura/repos","events_url":"https://api.github.com/users/Yinaura/events{/privacy}","received_events_url":"https://api.github.com/users/Yinaura/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Yinaura/jagi","description":"","fork":false,"url":"https://api.github.com/repos/Yinaura/jagi","forks_url":"https://api.github.com/repos/Yinaura/jagi/forks","keys_url":"https://api.github.com/repos/Yinaura/jagi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yinaura/jagi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yinaura/jagi/teams","hooks_url":"https://api.github.com/repos/Yinaura/jagi/hooks","issue_events_url":"https://api.github.com/repos/Yinaura/jagi/issues/events{/number}","events_url":"https://api.github.com/repos/Yinaura/jagi/events","assignees_url":"https://api.github.com/repos/Yinaura/jagi/assignees{/user}","branches_url":"https://api.github.com/repos/Yinaura/jagi/branches{/branch}","tags_url":"https://api.github.com/repos/Yinaura/jagi/tags","blobs_url":"https://api.github.com/repos/Yinaura/jagi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yinaura/jagi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yinaura/jagi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yinaura/jagi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yinaura/jagi/statuses/{sha}","languages_url":"https://api.github.com/repos/Yinaura/jagi/languages","stargazers_url":"https://api.github.com/repos/Yinaura/jagi/stargazers","contributors_url":"https://api.github.com/repos/Yinaura/jagi/contributors","subscribers_url":"https://api.github.com/repos/Yinaura/jagi/subscribers","subscription_url":"https://api.github.com/repos/Yinaura/jagi/subscription","commits_url":"https://api.github.com/repos/Yinaura/jagi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yinaura/jagi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yinaura/jagi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yinaura/jagi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yinaura/jagi/contents/{+path}","compare_url":"https://api.github.com/repos/Yinaura/jagi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yinaura/jagi/merges","archive_url":"https://api.github.com/repos/Yinaura/jagi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yinaura/jagi/downloads","issues_url":"https://api.github.com/repos/Yinaura/jagi/issues{/number}","pulls_url":"https://api.github.com/repos/Yinaura/jagi/pulls{/number}","milestones_url":"https://api.github.com/repos/Yinaura/jagi/milestones{/number}","notifications_url":"https://api.github.com/repos/Yinaura/jagi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yinaura/jagi/labels{/name}","releases_url":"https://api.github.com/repos/Yinaura/jagi/releases{/id}","created_at":"2015-08-04T02:57:51Z","updated_at":"2015-08-04T03:10:49Z","pushed_at":"2015-08-12T04:35:36Z","git_url":"git://github.com/Yinaura/jagi.git","ssh_url":"git@github.com:Yinaura/jagi.git","clone_url":"https://github.com/Yinaura/jagi.git","svn_url":"https://github.com/Yinaura/jagi","homepage":null,"size":333,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"Yinaura:master","ref":"master","sha":"68f0803fd64ea29ccfbbb5974cbd840151bb260c","user":{"login":"Yinaura","id":13635059,"avatar_url":"https://avatars.githubusercontent.com/u/13635059?v=3","gravatar_id":"","url":"https://api.github.com/users/Yinaura","html_url":"https://github.com/Yinaura","followers_url":"https://api.github.com/users/Yinaura/followers","following_url":"https://api.github.com/users/Yinaura/following{/other_user}","gists_url":"https://api.github.com/users/Yinaura/gists{/gist_id}","starred_url":"https://api.github.com/users/Yinaura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yinaura/subscriptions","organizations_url":"https://api.github.com/users/Yinaura/orgs","repos_url":"https://api.github.com/users/Yinaura/repos","events_url":"https://api.github.com/users/Yinaura/events{/privacy}","received_events_url":"https://api.github.com/users/Yinaura/received_events","type":"User","site_admin":false},"repo":{"id":40160096,"name":"jagi","full_name":"Yinaura/jagi","owner":{"login":"Yinaura","id":13635059,"avatar_url":"https://avatars.githubusercontent.com/u/13635059?v=3","gravatar_id":"","url":"https://api.github.com/users/Yinaura","html_url":"https://github.com/Yinaura","followers_url":"https://api.github.com/users/Yinaura/followers","following_url":"https://api.github.com/users/Yinaura/following{/other_user}","gists_url":"https://api.github.com/users/Yinaura/gists{/gist_id}","starred_url":"https://api.github.com/users/Yinaura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yinaura/subscriptions","organizations_url":"https://api.github.com/users/Yinaura/orgs","repos_url":"https://api.github.com/users/Yinaura/repos","events_url":"https://api.github.com/users/Yinaura/events{/privacy}","received_events_url":"https://api.github.com/users/Yinaura/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Yinaura/jagi","description":"","fork":false,"url":"https://api.github.com/repos/Yinaura/jagi","forks_url":"https://api.github.com/repos/Yinaura/jagi/forks","keys_url":"https://api.github.com/repos/Yinaura/jagi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yinaura/jagi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yinaura/jagi/teams","hooks_url":"https://api.github.com/repos/Yinaura/jagi/hooks","issue_events_url":"https://api.github.com/repos/Yinaura/jagi/issues/events{/number}","events_url":"https://api.github.com/repos/Yinaura/jagi/events","assignees_url":"https://api.github.com/repos/Yinaura/jagi/assignees{/user}","branches_url":"https://api.github.com/repos/Yinaura/jagi/branches{/branch}","tags_url":"https://api.github.com/repos/Yinaura/jagi/tags","blobs_url":"https://api.github.com/repos/Yinaura/jagi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yinaura/jagi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yinaura/jagi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yinaura/jagi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yinaura/jagi/statuses/{sha}","languages_url":"https://api.github.com/repos/Yinaura/jagi/languages","stargazers_url":"https://api.github.com/repos/Yinaura/jagi/stargazers","contributors_url":"https://api.github.com/repos/Yinaura/jagi/contributors","subscribers_url":"https://api.github.com/repos/Yinaura/jagi/subscribers","subscription_url":"https://api.github.com/repos/Yinaura/jagi/subscription","commits_url":"https://api.github.com/repos/Yinaura/jagi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yinaura/jagi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yinaura/jagi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yinaura/jagi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yinaura/jagi/contents/{+path}","compare_url":"https://api.github.com/repos/Yinaura/jagi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yinaura/jagi/merges","archive_url":"https://api.github.com/repos/Yinaura/jagi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yinaura/jagi/downloads","issues_url":"https://api.github.com/repos/Yinaura/jagi/issues{/number}","pulls_url":"https://api.github.com/repos/Yinaura/jagi/pulls{/number}","milestones_url":"https://api.github.com/repos/Yinaura/jagi/milestones{/number}","notifications_url":"https://api.github.com/repos/Yinaura/jagi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yinaura/jagi/labels{/name}","releases_url":"https://api.github.com/repos/Yinaura/jagi/releases{/id}","created_at":"2015-08-04T02:57:51Z","updated_at":"2015-08-04T03:10:49Z","pushed_at":"2015-08-12T04:35:36Z","git_url":"git://github.com/Yinaura/jagi.git","ssh_url":"git@github.com:Yinaura/jagi.git","clone_url":"https://github.com/Yinaura/jagi.git","svn_url":"https://github.com/Yinaura/jagi","homepage":null,"size":333,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/10"},"html":{"href":"https://github.com/Yinaura/jagi/pull/10"},"issue":{"href":"https://api.github.com/repos/Yinaura/jagi/issues/10"},"comments":{"href":"https://api.github.com/repos/Yinaura/jagi/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/Yinaura/jagi/statuses/703eabb5d6907a6067d8c06b34d21e4e8a670d7a"}}}}