{"action":"created","comment":{"url":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/comments/64683125","id":64683125,"diff_hunk":"@@ -0,0 +1,12 @@\n+class SessionsController < ApplicationController\n+  def create\n+    user = User.find_or_create_from_auth_hash(request.env['omniauth.auth'])\n+    session[:user_id] = user.id","path":"app/controllers/sessions_controller.rb","position":4,"original_position":4,"commit_id":"61576ec54e74011a29f42b2b006bc97076e6ba35","original_commit_id":"61576ec54e74011a29f42b2b006bc97076e6ba35","user":{"login":"pokotyamu","id":3479317,"avatar_url":"https://avatars.githubusercontent.com/u/3479317?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyamu","html_url":"https://github.com/pokotyamu","followers_url":"https://api.github.com/users/pokotyamu/followers","following_url":"https://api.github.com/users/pokotyamu/following{/other_user}","gists_url":"https://api.github.com/users/pokotyamu/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyamu/subscriptions","organizations_url":"https://api.github.com/users/pokotyamu/orgs","repos_url":"https://api.github.com/users/pokotyamu/repos","events_url":"https://api.github.com/users/pokotyamu/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyamu/received_events","type":"User","site_admin":false},"body":">>  session.class\r\n=> ActionDispatch::Request::Session\r\nhttp://www.rubydoc.info/docs/rails/ActionDispatch/Request/Session\r\nrailsの標準で入ってるミドルウェア","created_at":"2016-05-26T02:16:17Z","updated_at":"2016-05-26T02:16:17Z","html_url":"https://github.com/pokotyamu/awesome_events/pull/3#discussion_r64683125","pull_request_url":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/comments/64683125"},"html":{"href":"https://github.com/pokotyamu/awesome_events/pull/3#discussion_r64683125"},"pull_request":{"href":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/3","id":71157027,"html_url":"https://github.com/pokotyamu/awesome_events/pull/3","diff_url":"https://github.com/pokotyamu/awesome_events/pull/3.diff","patch_url":"https://github.com/pokotyamu/awesome_events/pull/3.patch","issue_url":"https://api.github.com/repos/pokotyamu/awesome_events/issues/3","number":3,"state":"open","locked":false,"title":"p.171~  Twitterアカウントでログインする機能の作成","user":{"login":"pokotyamu","id":3479317,"avatar_url":"https://avatars.githubusercontent.com/u/3479317?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyamu","html_url":"https://github.com/pokotyamu","followers_url":"https://api.github.com/users/pokotyamu/followers","following_url":"https://api.github.com/users/pokotyamu/following{/other_user}","gists_url":"https://api.github.com/users/pokotyamu/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyamu/subscriptions","organizations_url":"https://api.github.com/users/pokotyamu/orgs","repos_url":"https://api.github.com/users/pokotyamu/repos","events_url":"https://api.github.com/users/pokotyamu/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyamu/received_events","type":"User","site_admin":false},"body":"## やりたいこと\r\n+ [x] ヘッダーに「Twitterでログイン」というリンクを追加する\r\n+ [x] 「Twitterでログイン」をクリックするとTwitterのアプリケーション認証画面に遷移する\r\n+ [x]  Twitterのアプリケーション認証画面で適切なユーザ名とパスワードを入力すると、ログインできる\r\n+ [x] ログインした状態だと、「Twitterでログイン」の代わりに「ログアウト」というリンクが表示される\r\n+ [x] 「ログアウト」をクリックするとログアウトできる\r\n\r\n## 動作確認方法\r\n前提条件：Twitterアカウントを持っている\r\n+ [ ] ログインしていない状態でヘッダーに「Twitterでログイン」が表示される\r\n+ [ ] ログイン完了後、トップに戻った時に「ログインしました」とメッセージが表示される\r\n+ [ ] ログイン完了後、ヘッダーに「ログアウト」が表示される\r\n+ [ ] ログアウトを押すと、「ログアウトしました」とメッセージが表示される\r\n+ [ ] 最初のログインしていない状態に戻る","created_at":"2016-05-24T04:40:33Z","updated_at":"2016-05-26T02:16:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aab6a1eda97cd2136283653e8a67c9d16c1d19ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/3/commits","review_comments_url":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/3/comments","review_comment_url":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pokotyamu/awesome_events/issues/3/comments","statuses_url":"https://api.github.com/repos/pokotyamu/awesome_events/statuses/61576ec54e74011a29f42b2b006bc97076e6ba35","head":{"label":"pokotyamu:twitter-oauth","ref":"twitter-oauth","sha":"61576ec54e74011a29f42b2b006bc97076e6ba35","user":{"login":"pokotyamu","id":3479317,"avatar_url":"https://avatars.githubusercontent.com/u/3479317?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyamu","html_url":"https://github.com/pokotyamu","followers_url":"https://api.github.com/users/pokotyamu/followers","following_url":"https://api.github.com/users/pokotyamu/following{/other_user}","gists_url":"https://api.github.com/users/pokotyamu/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyamu/subscriptions","organizations_url":"https://api.github.com/users/pokotyamu/orgs","repos_url":"https://api.github.com/users/pokotyamu/repos","events_url":"https://api.github.com/users/pokotyamu/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyamu/received_events","type":"User","site_admin":false},"repo":{"id":59534994,"name":"awesome_events","full_name":"pokotyamu/awesome_events","owner":{"login":"pokotyamu","id":3479317,"avatar_url":"https://avatars.githubusercontent.com/u/3479317?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyamu","html_url":"https://github.com/pokotyamu","followers_url":"https://api.github.com/users/pokotyamu/followers","following_url":"https://api.github.com/users/pokotyamu/following{/other_user}","gists_url":"https://api.github.com/users/pokotyamu/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyamu/subscriptions","organizations_url":"https://api.github.com/users/pokotyamu/orgs","repos_url":"https://api.github.com/users/pokotyamu/repos","events_url":"https://api.github.com/users/pokotyamu/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyamu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pokotyamu/awesome_events","description":"パrailsの研修用リポジトリ","fork":false,"url":"https://api.github.com/repos/pokotyamu/awesome_events","forks_url":"https://api.github.com/repos/pokotyamu/awesome_events/forks","keys_url":"https://api.github.com/repos/pokotyamu/awesome_events/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pokotyamu/awesome_events/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pokotyamu/awesome_events/teams","hooks_url":"https://api.github.com/repos/pokotyamu/awesome_events/hooks","issue_events_url":"https://api.github.com/repos/pokotyamu/awesome_events/issues/events{/number}","events_url":"https://api.github.com/repos/pokotyamu/awesome_events/events","assignees_url":"https://api.github.com/repos/pokotyamu/awesome_events/assignees{/user}","branches_url":"https://api.github.com/repos/pokotyamu/awesome_events/branches{/branch}","tags_url":"https://api.github.com/repos/pokotyamu/awesome_events/tags","blobs_url":"https://api.github.com/repos/pokotyamu/awesome_events/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pokotyamu/awesome_events/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pokotyamu/awesome_events/git/refs{/sha}","trees_url":"https://api.github.com/repos/pokotyamu/awesome_events/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pokotyamu/awesome_events/statuses/{sha}","languages_url":"https://api.github.com/repos/pokotyamu/awesome_events/languages","stargazers_url":"https://api.github.com/repos/pokotyamu/awesome_events/stargazers","contributors_url":"https://api.github.com/repos/pokotyamu/awesome_events/contributors","subscribers_url":"https://api.github.com/repos/pokotyamu/awesome_events/subscribers","subscription_url":"https://api.github.com/repos/pokotyamu/awesome_events/subscription","commits_url":"https://api.github.com/repos/pokotyamu/awesome_events/commits{/sha}","git_commits_url":"https://api.github.com/repos/pokotyamu/awesome_events/git/commits{/sha}","comments_url":"https://api.github.com/repos/pokotyamu/awesome_events/comments{/number}","issue_comment_url":"https://api.github.com/repos/pokotyamu/awesome_events/issues/comments{/number}","contents_url":"https://api.github.com/repos/pokotyamu/awesome_events/contents/{+path}","compare_url":"https://api.github.com/repos/pokotyamu/awesome_events/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pokotyamu/awesome_events/merges","archive_url":"https://api.github.com/repos/pokotyamu/awesome_events/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pokotyamu/awesome_events/downloads","issues_url":"https://api.github.com/repos/pokotyamu/awesome_events/issues{/number}","pulls_url":"https://api.github.com/repos/pokotyamu/awesome_events/pulls{/number}","milestones_url":"https://api.github.com/repos/pokotyamu/awesome_events/milestones{/number}","notifications_url":"https://api.github.com/repos/pokotyamu/awesome_events/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pokotyamu/awesome_events/labels{/name}","releases_url":"https://api.github.com/repos/pokotyamu/awesome_events/releases{/id}","deployments_url":"https://api.github.com/repos/pokotyamu/awesome_events/deployments","created_at":"2016-05-24T02:47:08Z","updated_at":"2016-05-25T11:17:35Z","pushed_at":"2016-05-25T03:18:24Z","git_url":"git://github.com/pokotyamu/awesome_events.git","ssh_url":"git@github.com:pokotyamu/awesome_events.git","clone_url":"https://github.com/pokotyamu/awesome_events.git","svn_url":"https://github.com/pokotyamu/awesome_events","homepage":null,"size":62,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"pokotyamu:master","ref":"master","sha":"f2bd4fbfb38fd02d50bf75c193c99fca96c42e14","user":{"login":"pokotyamu","id":3479317,"avatar_url":"https://avatars.githubusercontent.com/u/3479317?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyamu","html_url":"https://github.com/pokotyamu","followers_url":"https://api.github.com/users/pokotyamu/followers","following_url":"https://api.github.com/users/pokotyamu/following{/other_user}","gists_url":"https://api.github.com/users/pokotyamu/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyamu/subscriptions","organizations_url":"https://api.github.com/users/pokotyamu/orgs","repos_url":"https://api.github.com/users/pokotyamu/repos","events_url":"https://api.github.com/users/pokotyamu/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyamu/received_events","type":"User","site_admin":false},"repo":{"id":59534994,"name":"awesome_events","full_name":"pokotyamu/awesome_events","owner":{"login":"pokotyamu","id":3479317,"avatar_url":"https://avatars.githubusercontent.com/u/3479317?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyamu","html_url":"https://github.com/pokotyamu","followers_url":"https://api.github.com/users/pokotyamu/followers","following_url":"https://api.github.com/users/pokotyamu/following{/other_user}","gists_url":"https://api.github.com/users/pokotyamu/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyamu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyamu/subscriptions","organizations_url":"https://api.github.com/users/pokotyamu/orgs","repos_url":"https://api.github.com/users/pokotyamu/repos","events_url":"https://api.github.com/users/pokotyamu/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyamu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pokotyamu/awesome_events","description":"パrailsの研修用リポジトリ","fork":false,"url":"https://api.github.com/repos/pokotyamu/awesome_events","forks_url":"https://api.github.com/repos/pokotyamu/awesome_events/forks","keys_url":"https://api.github.com/repos/pokotyamu/awesome_events/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pokotyamu/awesome_events/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pokotyamu/awesome_events/teams","hooks_url":"https://api.github.com/repos/pokotyamu/awesome_events/hooks","issue_events_url":"https://api.github.com/repos/pokotyamu/awesome_events/issues/events{/number}","events_url":"https://api.github.com/repos/pokotyamu/awesome_events/events","assignees_url":"https://api.github.com/repos/pokotyamu/awesome_events/assignees{/user}","branches_url":"https://api.github.com/repos/pokotyamu/awesome_events/branches{/branch}","tags_url":"https://api.github.com/repos/pokotyamu/awesome_events/tags","blobs_url":"https://api.github.com/repos/pokotyamu/awesome_events/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pokotyamu/awesome_events/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pokotyamu/awesome_events/git/refs{/sha}","trees_url":"https://api.github.com/repos/pokotyamu/awesome_events/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pokotyamu/awesome_events/statuses/{sha}","languages_url":"https://api.github.com/repos/pokotyamu/awesome_events/languages","stargazers_url":"https://api.github.com/repos/pokotyamu/awesome_events/stargazers","contributors_url":"https://api.github.com/repos/pokotyamu/awesome_events/contributors","subscribers_url":"https://api.github.com/repos/pokotyamu/awesome_events/subscribers","subscription_url":"https://api.github.com/repos/pokotyamu/awesome_events/subscription","commits_url":"https://api.github.com/repos/pokotyamu/awesome_events/commits{/sha}","git_commits_url":"https://api.github.com/repos/pokotyamu/awesome_events/git/commits{/sha}","comments_url":"https://api.github.com/repos/pokotyamu/awesome_events/comments{/number}","issue_comment_url":"https://api.github.com/repos/pokotyamu/awesome_events/issues/comments{/number}","contents_url":"https://api.github.com/repos/pokotyamu/awesome_events/contents/{+path}","compare_url":"https://api.github.com/repos/pokotyamu/awesome_events/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pokotyamu/awesome_events/merges","archive_url":"https://api.github.com/repos/pokotyamu/awesome_events/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pokotyamu/awesome_events/downloads","issues_url":"https://api.github.com/repos/pokotyamu/awesome_events/issues{/number}","pulls_url":"https://api.github.com/repos/pokotyamu/awesome_events/pulls{/number}","milestones_url":"https://api.github.com/repos/pokotyamu/awesome_events/milestones{/number}","notifications_url":"https://api.github.com/repos/pokotyamu/awesome_events/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pokotyamu/awesome_events/labels{/name}","releases_url":"https://api.github.com/repos/pokotyamu/awesome_events/releases{/id}","deployments_url":"https://api.github.com/repos/pokotyamu/awesome_events/deployments","created_at":"2016-05-24T02:47:08Z","updated_at":"2016-05-25T11:17:35Z","pushed_at":"2016-05-25T03:18:24Z","git_url":"git://github.com/pokotyamu/awesome_events.git","ssh_url":"git@github.com:pokotyamu/awesome_events.git","clone_url":"https://github.com/pokotyamu/awesome_events.git","svn_url":"https://github.com/pokotyamu/awesome_events","homepage":null,"size":62,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/3"},"html":{"href":"https://github.com/pokotyamu/awesome_events/pull/3"},"issue":{"href":"https://api.github.com/repos/pokotyamu/awesome_events/issues/3"},"comments":{"href":"https://api.github.com/repos/pokotyamu/awesome_events/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pokotyamu/awesome_events/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/pokotyamu/awesome_events/statuses/61576ec54e74011a29f42b2b006bc97076e6ba35"}}}}
{"actor":{"display_login":"pokotyamu"}}