{"action":"created","comment":{"url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/comments/94117408","pull_request_review_id":14647736,"id":94117408,"diff_hunk":"@@ -0,0 +1,18 @@\n+module SessionsHelper\n+  def log_in user\n+    session[:user_id] = user.id\n+  end\n+\n+  def current_user\n+    @current_user ||= User.find_by id: session[:user_id]\n+  end\n+\n+  def logged_in?\n+    !current_user.nil?","path":"app/helpers/sessions_helper.rb","position":11,"original_position":11,"commit_id":"2d2f277b227c3e958aa52ee48e506f17c6f3dfe4","original_commit_id":"2d2f277b227c3e958aa52ee48e506f17c6f3dfe4","user":{"login":"yeunuthongminh","id":20291773,"avatar_url":"https://avatars.githubusercontent.com/u/20291773?v=3","gravatar_id":"","url":"https://api.github.com/users/yeunuthongminh","html_url":"https://github.com/yeunuthongminh","followers_url":"https://api.github.com/users/yeunuthongminh/followers","following_url":"https://api.github.com/users/yeunuthongminh/following{/other_user}","gists_url":"https://api.github.com/users/yeunuthongminh/gists{/gist_id}","starred_url":"https://api.github.com/users/yeunuthongminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeunuthongminh/subscriptions","organizations_url":"https://api.github.com/users/yeunuthongminh/orgs","repos_url":"https://api.github.com/users/yeunuthongminh/repos","events_url":"https://api.github.com/users/yeunuthongminh/events{/privacy}","received_events_url":"https://api.github.com/users/yeunuthongminh/received_events","type":"User","site_admin":false},"body":"current_user.present?","created_at":"2016-12-29T09:39:21Z","updated_at":"2016-12-29T09:39:21Z","html_url":"https://github.com/ohmygodvt95/sample_app_2/pull/6#discussion_r94117408","pull_request_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/comments/94117408"},"html":{"href":"https://github.com/ohmygodvt95/sample_app_2/pull/6#discussion_r94117408"},"pull_request":{"href":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/6","id":99635126,"html_url":"https://github.com/ohmygodvt95/sample_app_2/pull/6","diff_url":"https://github.com/ohmygodvt95/sample_app_2/pull/6.diff","patch_url":"https://github.com/ohmygodvt95/sample_app_2/pull/6.patch","issue_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/issues/6","number":6,"state":"open","locked":false,"title":"Implement basic login","user":{"login":"ohmygodvt95","id":9191807,"avatar_url":"https://avatars.githubusercontent.com/u/9191807?v=3","gravatar_id":"","url":"https://api.github.com/users/ohmygodvt95","html_url":"https://github.com/ohmygodvt95","followers_url":"https://api.github.com/users/ohmygodvt95/followers","following_url":"https://api.github.com/users/ohmygodvt95/following{/other_user}","gists_url":"https://api.github.com/users/ohmygodvt95/gists{/gist_id}","starred_url":"https://api.github.com/users/ohmygodvt95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohmygodvt95/subscriptions","organizations_url":"https://api.github.com/users/ohmygodvt95/orgs","repos_url":"https://api.github.com/users/ohmygodvt95/repos","events_url":"https://api.github.com/users/ohmygodvt95/events{/privacy}","received_events_url":"https://api.github.com/users/ohmygodvt95/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-29T09:34:01Z","updated_at":"2016-12-29T09:39:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ad7b7ce8166ac510f86d3fdd5d5759515440e09","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/6/commits","review_comments_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/6/comments","review_comment_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/issues/6/comments","statuses_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/statuses/2d2f277b227c3e958aa52ee48e506f17c6f3dfe4","head":{"label":"ohmygodvt95:basic-login","ref":"basic-login","sha":"2d2f277b227c3e958aa52ee48e506f17c6f3dfe4","user":{"login":"ohmygodvt95","id":9191807,"avatar_url":"https://avatars.githubusercontent.com/u/9191807?v=3","gravatar_id":"","url":"https://api.github.com/users/ohmygodvt95","html_url":"https://github.com/ohmygodvt95","followers_url":"https://api.github.com/users/ohmygodvt95/followers","following_url":"https://api.github.com/users/ohmygodvt95/following{/other_user}","gists_url":"https://api.github.com/users/ohmygodvt95/gists{/gist_id}","starred_url":"https://api.github.com/users/ohmygodvt95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohmygodvt95/subscriptions","organizations_url":"https://api.github.com/users/ohmygodvt95/orgs","repos_url":"https://api.github.com/users/ohmygodvt95/repos","events_url":"https://api.github.com/users/ohmygodvt95/events{/privacy}","received_events_url":"https://api.github.com/users/ohmygodvt95/received_events","type":"User","site_admin":false},"repo":{"id":77572551,"name":"sample_app_2","full_name":"ohmygodvt95/sample_app_2","owner":{"login":"ohmygodvt95","id":9191807,"avatar_url":"https://avatars.githubusercontent.com/u/9191807?v=3","gravatar_id":"","url":"https://api.github.com/users/ohmygodvt95","html_url":"https://github.com/ohmygodvt95","followers_url":"https://api.github.com/users/ohmygodvt95/followers","following_url":"https://api.github.com/users/ohmygodvt95/following{/other_user}","gists_url":"https://api.github.com/users/ohmygodvt95/gists{/gist_id}","starred_url":"https://api.github.com/users/ohmygodvt95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohmygodvt95/subscriptions","organizations_url":"https://api.github.com/users/ohmygodvt95/orgs","repos_url":"https://api.github.com/users/ohmygodvt95/repos","events_url":"https://api.github.com/users/ohmygodvt95/events{/privacy}","received_events_url":"https://api.github.com/users/ohmygodvt95/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ohmygodvt95/sample_app_2","description":null,"fork":false,"url":"https://api.github.com/repos/ohmygodvt95/sample_app_2","forks_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/forks","keys_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/teams","hooks_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/hooks","issue_events_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/issues/events{/number}","events_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/events","assignees_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/assignees{/user}","branches_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/branches{/branch}","tags_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/tags","blobs_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/git/refs{/sha}","trees_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/statuses/{sha}","languages_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/languages","stargazers_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/stargazers","contributors_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/contributors","subscribers_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/subscribers","subscription_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/subscription","commits_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/commits{/sha}","git_commits_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/git/commits{/sha}","comments_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/comments{/number}","issue_comment_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/issues/comments{/number}","contents_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/contents/{+path}","compare_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/merges","archive_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/downloads","issues_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/issues{/number}","pulls_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls{/number}","milestones_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/milestones{/number}","notifications_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/labels{/name}","releases_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/releases{/id}","deployments_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/deployments","created_at":"2016-12-29T01:30:09Z","updated_at":"2016-12-29T08:14:03Z","pushed_at":"2016-12-29T09:34:01Z","git_url":"git://github.com/ohmygodvt95/sample_app_2.git","ssh_url":"git@github.com:ohmygodvt95/sample_app_2.git","clone_url":"https://github.com/ohmygodvt95/sample_app_2.git","svn_url":"https://github.com/ohmygodvt95/sample_app_2","homepage":null,"size":42,"stargazers_count":1,"watchers_count":1,"language":null,"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":1,"default_branch":"master"}},"base":{"label":"ohmygodvt95:develop","ref":"develop","sha":"454d4380f1ebf20d8556e1a0707a1a9bd69e4ecd","user":{"login":"ohmygodvt95","id":9191807,"avatar_url":"https://avatars.githubusercontent.com/u/9191807?v=3","gravatar_id":"","url":"https://api.github.com/users/ohmygodvt95","html_url":"https://github.com/ohmygodvt95","followers_url":"https://api.github.com/users/ohmygodvt95/followers","following_url":"https://api.github.com/users/ohmygodvt95/following{/other_user}","gists_url":"https://api.github.com/users/ohmygodvt95/gists{/gist_id}","starred_url":"https://api.github.com/users/ohmygodvt95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohmygodvt95/subscriptions","organizations_url":"https://api.github.com/users/ohmygodvt95/orgs","repos_url":"https://api.github.com/users/ohmygodvt95/repos","events_url":"https://api.github.com/users/ohmygodvt95/events{/privacy}","received_events_url":"https://api.github.com/users/ohmygodvt95/received_events","type":"User","site_admin":false},"repo":{"id":77572551,"name":"sample_app_2","full_name":"ohmygodvt95/sample_app_2","owner":{"login":"ohmygodvt95","id":9191807,"avatar_url":"https://avatars.githubusercontent.com/u/9191807?v=3","gravatar_id":"","url":"https://api.github.com/users/ohmygodvt95","html_url":"https://github.com/ohmygodvt95","followers_url":"https://api.github.com/users/ohmygodvt95/followers","following_url":"https://api.github.com/users/ohmygodvt95/following{/other_user}","gists_url":"https://api.github.com/users/ohmygodvt95/gists{/gist_id}","starred_url":"https://api.github.com/users/ohmygodvt95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohmygodvt95/subscriptions","organizations_url":"https://api.github.com/users/ohmygodvt95/orgs","repos_url":"https://api.github.com/users/ohmygodvt95/repos","events_url":"https://api.github.com/users/ohmygodvt95/events{/privacy}","received_events_url":"https://api.github.com/users/ohmygodvt95/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ohmygodvt95/sample_app_2","description":null,"fork":false,"url":"https://api.github.com/repos/ohmygodvt95/sample_app_2","forks_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/forks","keys_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/teams","hooks_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/hooks","issue_events_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/issues/events{/number}","events_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/events","assignees_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/assignees{/user}","branches_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/branches{/branch}","tags_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/tags","blobs_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/git/refs{/sha}","trees_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/statuses/{sha}","languages_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/languages","stargazers_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/stargazers","contributors_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/contributors","subscribers_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/subscribers","subscription_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/subscription","commits_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/commits{/sha}","git_commits_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/git/commits{/sha}","comments_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/comments{/number}","issue_comment_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/issues/comments{/number}","contents_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/contents/{+path}","compare_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/merges","archive_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/downloads","issues_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/issues{/number}","pulls_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls{/number}","milestones_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/milestones{/number}","notifications_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/labels{/name}","releases_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/releases{/id}","deployments_url":"https://api.github.com/repos/ohmygodvt95/sample_app_2/deployments","created_at":"2016-12-29T01:30:09Z","updated_at":"2016-12-29T08:14:03Z","pushed_at":"2016-12-29T09:34:01Z","git_url":"git://github.com/ohmygodvt95/sample_app_2.git","ssh_url":"git@github.com:ohmygodvt95/sample_app_2.git","clone_url":"https://github.com/ohmygodvt95/sample_app_2.git","svn_url":"https://github.com/ohmygodvt95/sample_app_2","homepage":null,"size":42,"stargazers_count":1,"watchers_count":1,"language":null,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/6"},"html":{"href":"https://github.com/ohmygodvt95/sample_app_2/pull/6"},"issue":{"href":"https://api.github.com/repos/ohmygodvt95/sample_app_2/issues/6"},"comments":{"href":"https://api.github.com/repos/ohmygodvt95/sample_app_2/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ohmygodvt95/sample_app_2/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/ohmygodvt95/sample_app_2/statuses/2d2f277b227c3e958aa52ee48e506f17c6f3dfe4"}}}}
{"actor":{"display_login":"yeunuthongminh"}}