{"action":"created","comment":{"url":"https://api.github.com/repos/VoTrung96/sample_app/pulls/comments/181612525","pull_request_review_id":112268577,"id":181612525,"diff_hunk":"@@ -0,0 +1,29 @@\n+class UsersController < ApplicationController\n+  def new\n+    @user = User.new\n+  end\n+\n+  def show\n+    @user = User.find_by(params[:id])\n+    return if @user\n+    flash[:danger] = I18n.t \"error_signup\"\n+    redirect_to root_path\n+  end\n+\n+  def create\n+    @user = User.new(user_params)","path":"app/controllers/users_controller.rb","position":14,"original_position":14,"commit_id":"1ddcadc947dfbb29d3fc05596552238640d6e7a4","original_commit_id":"1ddcadc947dfbb29d3fc05596552238640d6e7a4","user":{"login":"dothidiemthao","id":21377118,"avatar_url":"https://avatars0.githubusercontent.com/u/21377118?v=4","gravatar_id":"","url":"https://api.github.com/users/dothidiemthao","html_url":"https://github.com/dothidiemthao","followers_url":"https://api.github.com/users/dothidiemthao/followers","following_url":"https://api.github.com/users/dothidiemthao/following{/other_user}","gists_url":"https://api.github.com/users/dothidiemthao/gists{/gist_id}","starred_url":"https://api.github.com/users/dothidiemthao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dothidiemthao/subscriptions","organizations_url":"https://api.github.com/users/dothidiemthao/orgs","repos_url":"https://api.github.com/users/dothidiemthao/repos","events_url":"https://api.github.com/users/dothidiemthao/events{/privacy}","received_events_url":"https://api.github.com/users/dothidiemthao/received_events","type":"User","site_admin":false},"body":"bỏ ( )","created_at":"2018-04-16T02:53:02Z","updated_at":"2018-04-16T02:55:07Z","html_url":"https://github.com/VoTrung96/sample_app/pull/5#discussion_r181612525","pull_request_url":"https://api.github.com/repos/VoTrung96/sample_app/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/VoTrung96/sample_app/pulls/comments/181612525"},"html":{"href":"https://github.com/VoTrung96/sample_app/pull/5#discussion_r181612525"},"pull_request":{"href":"https://api.github.com/repos/VoTrung96/sample_app/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/VoTrung96/sample_app/pulls/5","id":181147666,"html_url":"https://github.com/VoTrung96/sample_app/pull/5","diff_url":"https://github.com/VoTrung96/sample_app/pull/5.diff","patch_url":"https://github.com/VoTrung96/sample_app/pull/5.patch","issue_url":"https://api.github.com/repos/VoTrung96/sample_app/issues/5","number":5,"state":"open","locked":false,"title":"complete chapter7","user":{"login":"VoTrung96","id":30426566,"avatar_url":"https://avatars1.githubusercontent.com/u/30426566?v=4","gravatar_id":"","url":"https://api.github.com/users/VoTrung96","html_url":"https://github.com/VoTrung96","followers_url":"https://api.github.com/users/VoTrung96/followers","following_url":"https://api.github.com/users/VoTrung96/following{/other_user}","gists_url":"https://api.github.com/users/VoTrung96/gists{/gist_id}","starred_url":"https://api.github.com/users/VoTrung96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VoTrung96/subscriptions","organizations_url":"https://api.github.com/users/VoTrung96/orgs","repos_url":"https://api.github.com/users/VoTrung96/repos","events_url":"https://api.github.com/users/VoTrung96/events{/privacy}","received_events_url":"https://api.github.com/users/VoTrung96/received_events","type":"User","site_admin":false},"body":"![image](https://user-images.githubusercontent.com/30426566/38669948-bc71b960-3e71-11e8-9dd0-4d0cac610ae1.png)\r\n","created_at":"2018-04-12T09:51:29Z","updated_at":"2018-04-16T02:55:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ad6321e0d89898e9527f21fc24cf3669af7ee93","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/VoTrung96/sample_app/pulls/5/commits","review_comments_url":"https://api.github.com/repos/VoTrung96/sample_app/pulls/5/comments","review_comment_url":"https://api.github.com/repos/VoTrung96/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VoTrung96/sample_app/issues/5/comments","statuses_url":"https://api.github.com/repos/VoTrung96/sample_app/statuses/1ddcadc947dfbb29d3fc05596552238640d6e7a4","head":{"label":"VoTrung96:chapter_7","ref":"chapter_7","sha":"1ddcadc947dfbb29d3fc05596552238640d6e7a4","user":{"login":"VoTrung96","id":30426566,"avatar_url":"https://avatars1.githubusercontent.com/u/30426566?v=4","gravatar_id":"","url":"https://api.github.com/users/VoTrung96","html_url":"https://github.com/VoTrung96","followers_url":"https://api.github.com/users/VoTrung96/followers","following_url":"https://api.github.com/users/VoTrung96/following{/other_user}","gists_url":"https://api.github.com/users/VoTrung96/gists{/gist_id}","starred_url":"https://api.github.com/users/VoTrung96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VoTrung96/subscriptions","organizations_url":"https://api.github.com/users/VoTrung96/orgs","repos_url":"https://api.github.com/users/VoTrung96/repos","events_url":"https://api.github.com/users/VoTrung96/events{/privacy}","received_events_url":"https://api.github.com/users/VoTrung96/received_events","type":"User","site_admin":false},"repo":{"id":128726567,"name":"sample_app","full_name":"VoTrung96/sample_app","owner":{"login":"VoTrung96","id":30426566,"avatar_url":"https://avatars1.githubusercontent.com/u/30426566?v=4","gravatar_id":"","url":"https://api.github.com/users/VoTrung96","html_url":"https://github.com/VoTrung96","followers_url":"https://api.github.com/users/VoTrung96/followers","following_url":"https://api.github.com/users/VoTrung96/following{/other_user}","gists_url":"https://api.github.com/users/VoTrung96/gists{/gist_id}","starred_url":"https://api.github.com/users/VoTrung96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VoTrung96/subscriptions","organizations_url":"https://api.github.com/users/VoTrung96/orgs","repos_url":"https://api.github.com/users/VoTrung96/repos","events_url":"https://api.github.com/users/VoTrung96/events{/privacy}","received_events_url":"https://api.github.com/users/VoTrung96/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VoTrung96/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/VoTrung96/sample_app","forks_url":"https://api.github.com/repos/VoTrung96/sample_app/forks","keys_url":"https://api.github.com/repos/VoTrung96/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VoTrung96/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VoTrung96/sample_app/teams","hooks_url":"https://api.github.com/repos/VoTrung96/sample_app/hooks","issue_events_url":"https://api.github.com/repos/VoTrung96/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/VoTrung96/sample_app/events","assignees_url":"https://api.github.com/repos/VoTrung96/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/VoTrung96/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/VoTrung96/sample_app/tags","blobs_url":"https://api.github.com/repos/VoTrung96/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VoTrung96/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VoTrung96/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/VoTrung96/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VoTrung96/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/VoTrung96/sample_app/languages","stargazers_url":"https://api.github.com/repos/VoTrung96/sample_app/stargazers","contributors_url":"https://api.github.com/repos/VoTrung96/sample_app/contributors","subscribers_url":"https://api.github.com/repos/VoTrung96/sample_app/subscribers","subscription_url":"https://api.github.com/repos/VoTrung96/sample_app/subscription","commits_url":"https://api.github.com/repos/VoTrung96/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/VoTrung96/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/VoTrung96/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/VoTrung96/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/VoTrung96/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/VoTrung96/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VoTrung96/sample_app/merges","archive_url":"https://api.github.com/repos/VoTrung96/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VoTrung96/sample_app/downloads","issues_url":"https://api.github.com/repos/VoTrung96/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/VoTrung96/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/VoTrung96/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/VoTrung96/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VoTrung96/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/VoTrung96/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/VoTrung96/sample_app/deployments","created_at":"2018-04-09T06:43:15Z","updated_at":"2018-04-16T01:48:35Z","pushed_at":"2018-04-16T02:41:33Z","git_url":"git://github.com/VoTrung96/sample_app.git","ssh_url":"git@github.com:VoTrung96/sample_app.git","clone_url":"https://github.com/VoTrung96/sample_app.git","svn_url":"https://github.com/VoTrung96/sample_app","homepage":null,"size":163,"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":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"VoTrung96:master","ref":"master","sha":"b8080046fe66f40ef5888b5770b9c3762e54f673","user":{"login":"VoTrung96","id":30426566,"avatar_url":"https://avatars1.githubusercontent.com/u/30426566?v=4","gravatar_id":"","url":"https://api.github.com/users/VoTrung96","html_url":"https://github.com/VoTrung96","followers_url":"https://api.github.com/users/VoTrung96/followers","following_url":"https://api.github.com/users/VoTrung96/following{/other_user}","gists_url":"https://api.github.com/users/VoTrung96/gists{/gist_id}","starred_url":"https://api.github.com/users/VoTrung96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VoTrung96/subscriptions","organizations_url":"https://api.github.com/users/VoTrung96/orgs","repos_url":"https://api.github.com/users/VoTrung96/repos","events_url":"https://api.github.com/users/VoTrung96/events{/privacy}","received_events_url":"https://api.github.com/users/VoTrung96/received_events","type":"User","site_admin":false},"repo":{"id":128726567,"name":"sample_app","full_name":"VoTrung96/sample_app","owner":{"login":"VoTrung96","id":30426566,"avatar_url":"https://avatars1.githubusercontent.com/u/30426566?v=4","gravatar_id":"","url":"https://api.github.com/users/VoTrung96","html_url":"https://github.com/VoTrung96","followers_url":"https://api.github.com/users/VoTrung96/followers","following_url":"https://api.github.com/users/VoTrung96/following{/other_user}","gists_url":"https://api.github.com/users/VoTrung96/gists{/gist_id}","starred_url":"https://api.github.com/users/VoTrung96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VoTrung96/subscriptions","organizations_url":"https://api.github.com/users/VoTrung96/orgs","repos_url":"https://api.github.com/users/VoTrung96/repos","events_url":"https://api.github.com/users/VoTrung96/events{/privacy}","received_events_url":"https://api.github.com/users/VoTrung96/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VoTrung96/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/VoTrung96/sample_app","forks_url":"https://api.github.com/repos/VoTrung96/sample_app/forks","keys_url":"https://api.github.com/repos/VoTrung96/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VoTrung96/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VoTrung96/sample_app/teams","hooks_url":"https://api.github.com/repos/VoTrung96/sample_app/hooks","issue_events_url":"https://api.github.com/repos/VoTrung96/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/VoTrung96/sample_app/events","assignees_url":"https://api.github.com/repos/VoTrung96/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/VoTrung96/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/VoTrung96/sample_app/tags","blobs_url":"https://api.github.com/repos/VoTrung96/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VoTrung96/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VoTrung96/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/VoTrung96/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VoTrung96/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/VoTrung96/sample_app/languages","stargazers_url":"https://api.github.com/repos/VoTrung96/sample_app/stargazers","contributors_url":"https://api.github.com/repos/VoTrung96/sample_app/contributors","subscribers_url":"https://api.github.com/repos/VoTrung96/sample_app/subscribers","subscription_url":"https://api.github.com/repos/VoTrung96/sample_app/subscription","commits_url":"https://api.github.com/repos/VoTrung96/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/VoTrung96/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/VoTrung96/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/VoTrung96/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/VoTrung96/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/VoTrung96/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VoTrung96/sample_app/merges","archive_url":"https://api.github.com/repos/VoTrung96/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VoTrung96/sample_app/downloads","issues_url":"https://api.github.com/repos/VoTrung96/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/VoTrung96/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/VoTrung96/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/VoTrung96/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VoTrung96/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/VoTrung96/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/VoTrung96/sample_app/deployments","created_at":"2018-04-09T06:43:15Z","updated_at":"2018-04-16T01:48:35Z","pushed_at":"2018-04-16T02:41:33Z","git_url":"git://github.com/VoTrung96/sample_app.git","ssh_url":"git@github.com:VoTrung96/sample_app.git","clone_url":"https://github.com/VoTrung96/sample_app.git","svn_url":"https://github.com/VoTrung96/sample_app","homepage":null,"size":163,"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":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VoTrung96/sample_app/pulls/5"},"html":{"href":"https://github.com/VoTrung96/sample_app/pull/5"},"issue":{"href":"https://api.github.com/repos/VoTrung96/sample_app/issues/5"},"comments":{"href":"https://api.github.com/repos/VoTrung96/sample_app/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/VoTrung96/sample_app/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/VoTrung96/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VoTrung96/sample_app/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/VoTrung96/sample_app/statuses/1ddcadc947dfbb29d3fc05596552238640d6e7a4"}},"author_association":"OWNER"}}
{"actor":{"display_login":"dothidiemthao"}}