{"action":"created","comment":{"url":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/comments/83371204","pull_request_review_id":4219827,"id":83371204,"diff_hunk":"@@ -1,11 +1,14 @@\n class UsersController < ApplicationController\n+  before_action :logged_in_user, only: [:index, :edit, :update, :destroy]","path":"app/controllers/users_controller.rb","position":2,"original_position":2,"commit_id":"c04cb34ea045ec29eef9932071d355499fb7c061","original_commit_id":"c04cb34ea045ec29eef9932071d355499fb7c061","user":{"login":"nguyenhuutien","id":19922459,"avatar_url":"https://avatars.githubusercontent.com/u/19922459?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenhuutien","html_url":"https://github.com/nguyenhuutien","followers_url":"https://api.github.com/users/nguyenhuutien/followers","following_url":"https://api.github.com/users/nguyenhuutien/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhuutien/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhuutien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhuutien/subscriptions","organizations_url":"https://api.github.com/users/nguyenhuutien/orgs","repos_url":"https://api.github.com/users/nguyenhuutien/repos","events_url":"https://api.github.com/users/nguyenhuutien/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhuutien/received_events","type":"User","site_admin":false},"body":"except\r\n","created_at":"2016-10-14T07:38:50Z","updated_at":"2016-10-14T07:38:50Z","html_url":"https://github.com/PhanTrungDuc/sample_app/pull/11#discussion_r83371204","pull_request_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/comments/83371204"},"html":{"href":"https://github.com/PhanTrungDuc/sample_app/pull/11#discussion_r83371204"},"pull_request":{"href":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/11","id":88799314,"html_url":"https://github.com/PhanTrungDuc/sample_app/pull/11","diff_url":"https://github.com/PhanTrungDuc/sample_app/pull/11.diff","patch_url":"https://github.com/PhanTrungDuc/sample_app/pull/11.patch","issue_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/issues/11","number":11,"state":"open","locked":false,"title":"Chapter 10 Updating, showing, and deleting users","user":{"login":"PhanTrungDuc","id":22186378,"avatar_url":"https://avatars.githubusercontent.com/u/22186378?v=3","gravatar_id":"","url":"https://api.github.com/users/PhanTrungDuc","html_url":"https://github.com/PhanTrungDuc","followers_url":"https://api.github.com/users/PhanTrungDuc/followers","following_url":"https://api.github.com/users/PhanTrungDuc/following{/other_user}","gists_url":"https://api.github.com/users/PhanTrungDuc/gists{/gist_id}","starred_url":"https://api.github.com/users/PhanTrungDuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhanTrungDuc/subscriptions","organizations_url":"https://api.github.com/users/PhanTrungDuc/orgs","repos_url":"https://api.github.com/users/PhanTrungDuc/repos","events_url":"https://api.github.com/users/PhanTrungDuc/events{/privacy}","received_events_url":"https://api.github.com/users/PhanTrungDuc/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-11T09:30:35Z","updated_at":"2016-10-14T07:39:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a86f3fbcc3ddd7b1a46ef94bc6b04c05aa84576e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/11/commits","review_comments_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/11/comments","review_comment_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/issues/11/comments","statuses_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/statuses/c04cb34ea045ec29eef9932071d355499fb7c061","head":{"label":"PhanTrungDuc:updating-users","ref":"updating-users","sha":"c04cb34ea045ec29eef9932071d355499fb7c061","user":{"login":"PhanTrungDuc","id":22186378,"avatar_url":"https://avatars.githubusercontent.com/u/22186378?v=3","gravatar_id":"","url":"https://api.github.com/users/PhanTrungDuc","html_url":"https://github.com/PhanTrungDuc","followers_url":"https://api.github.com/users/PhanTrungDuc/followers","following_url":"https://api.github.com/users/PhanTrungDuc/following{/other_user}","gists_url":"https://api.github.com/users/PhanTrungDuc/gists{/gist_id}","starred_url":"https://api.github.com/users/PhanTrungDuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhanTrungDuc/subscriptions","organizations_url":"https://api.github.com/users/PhanTrungDuc/orgs","repos_url":"https://api.github.com/users/PhanTrungDuc/repos","events_url":"https://api.github.com/users/PhanTrungDuc/events{/privacy}","received_events_url":"https://api.github.com/users/PhanTrungDuc/received_events","type":"User","site_admin":false},"repo":{"id":69211261,"name":"sample_app","full_name":"PhanTrungDuc/sample_app","owner":{"login":"PhanTrungDuc","id":22186378,"avatar_url":"https://avatars.githubusercontent.com/u/22186378?v=3","gravatar_id":"","url":"https://api.github.com/users/PhanTrungDuc","html_url":"https://github.com/PhanTrungDuc","followers_url":"https://api.github.com/users/PhanTrungDuc/followers","following_url":"https://api.github.com/users/PhanTrungDuc/following{/other_user}","gists_url":"https://api.github.com/users/PhanTrungDuc/gists{/gist_id}","starred_url":"https://api.github.com/users/PhanTrungDuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhanTrungDuc/subscriptions","organizations_url":"https://api.github.com/users/PhanTrungDuc/orgs","repos_url":"https://api.github.com/users/PhanTrungDuc/repos","events_url":"https://api.github.com/users/PhanTrungDuc/events{/privacy}","received_events_url":"https://api.github.com/users/PhanTrungDuc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PhanTrungDuc/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/PhanTrungDuc/sample_app","forks_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/forks","keys_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/teams","hooks_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/hooks","issue_events_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/events","assignees_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/tags","blobs_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/languages","stargazers_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/stargazers","contributors_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/contributors","subscribers_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/subscribers","subscription_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/subscription","commits_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/merges","archive_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/downloads","issues_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/deployments","created_at":"2016-09-26T03:57:49Z","updated_at":"2016-09-26T04:05:15Z","pushed_at":"2016-10-14T07:37:04Z","git_url":"git://github.com/PhanTrungDuc/sample_app.git","ssh_url":"git@github.com:PhanTrungDuc/sample_app.git","clone_url":"https://github.com/PhanTrungDuc/sample_app.git","svn_url":"https://github.com/PhanTrungDuc/sample_app","homepage":null,"size":58,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"PhanTrungDuc:master","ref":"master","sha":"660d9918d4f842110fe480cae0dc00ea8e4bf935","user":{"login":"PhanTrungDuc","id":22186378,"avatar_url":"https://avatars.githubusercontent.com/u/22186378?v=3","gravatar_id":"","url":"https://api.github.com/users/PhanTrungDuc","html_url":"https://github.com/PhanTrungDuc","followers_url":"https://api.github.com/users/PhanTrungDuc/followers","following_url":"https://api.github.com/users/PhanTrungDuc/following{/other_user}","gists_url":"https://api.github.com/users/PhanTrungDuc/gists{/gist_id}","starred_url":"https://api.github.com/users/PhanTrungDuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhanTrungDuc/subscriptions","organizations_url":"https://api.github.com/users/PhanTrungDuc/orgs","repos_url":"https://api.github.com/users/PhanTrungDuc/repos","events_url":"https://api.github.com/users/PhanTrungDuc/events{/privacy}","received_events_url":"https://api.github.com/users/PhanTrungDuc/received_events","type":"User","site_admin":false},"repo":{"id":69211261,"name":"sample_app","full_name":"PhanTrungDuc/sample_app","owner":{"login":"PhanTrungDuc","id":22186378,"avatar_url":"https://avatars.githubusercontent.com/u/22186378?v=3","gravatar_id":"","url":"https://api.github.com/users/PhanTrungDuc","html_url":"https://github.com/PhanTrungDuc","followers_url":"https://api.github.com/users/PhanTrungDuc/followers","following_url":"https://api.github.com/users/PhanTrungDuc/following{/other_user}","gists_url":"https://api.github.com/users/PhanTrungDuc/gists{/gist_id}","starred_url":"https://api.github.com/users/PhanTrungDuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhanTrungDuc/subscriptions","organizations_url":"https://api.github.com/users/PhanTrungDuc/orgs","repos_url":"https://api.github.com/users/PhanTrungDuc/repos","events_url":"https://api.github.com/users/PhanTrungDuc/events{/privacy}","received_events_url":"https://api.github.com/users/PhanTrungDuc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PhanTrungDuc/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/PhanTrungDuc/sample_app","forks_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/forks","keys_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/teams","hooks_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/hooks","issue_events_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/events","assignees_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/tags","blobs_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/languages","stargazers_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/stargazers","contributors_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/contributors","subscribers_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/subscribers","subscription_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/subscription","commits_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/merges","archive_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/downloads","issues_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/PhanTrungDuc/sample_app/deployments","created_at":"2016-09-26T03:57:49Z","updated_at":"2016-09-26T04:05:15Z","pushed_at":"2016-10-14T07:37:04Z","git_url":"git://github.com/PhanTrungDuc/sample_app.git","ssh_url":"git@github.com:PhanTrungDuc/sample_app.git","clone_url":"https://github.com/PhanTrungDuc/sample_app.git","svn_url":"https://github.com/PhanTrungDuc/sample_app","homepage":null,"size":58,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/11"},"html":{"href":"https://github.com/PhanTrungDuc/sample_app/pull/11"},"issue":{"href":"https://api.github.com/repos/PhanTrungDuc/sample_app/issues/11"},"comments":{"href":"https://api.github.com/repos/PhanTrungDuc/sample_app/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PhanTrungDuc/sample_app/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/PhanTrungDuc/sample_app/statuses/c04cb34ea045ec29eef9932071d355499fb7c061"}}}}
{"actor":{"display_login":"nguyenhuutien"}}