{"action":"created","comment":{"url":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/comments/94092506","pull_request_review_id":14623137,"id":94092506,"diff_hunk":"@@ -0,0 +1,2 @@\n+$(\"#follow_form\").html('<%= escape_javascript(render(\"users/unfollow\")) %>');","path":"app/views/relationships/create.js.erb","position":1,"original_position":1,"commit_id":"238f299d499e1697e98e58c3a54dcdac9ddede30","original_commit_id":"238f299d499e1697e98e58c3a54dcdac9ddede30","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"js thì dùng single quote thôi, kiểu như này\r\n`$('#follow_form').html('<%= escape_javascript(render(\"users/unfollow\")) %>');`","created_at":"2016-12-29T00:57:34Z","updated_at":"2016-12-29T00:58:33Z","html_url":"https://github.com/TuBaDuc/sample_app/pull/8#discussion_r94092506","pull_request_url":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/comments/94092506"},"html":{"href":"https://github.com/TuBaDuc/sample_app/pull/8#discussion_r94092506"},"pull_request":{"href":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/8","id":99523407,"html_url":"https://github.com/TuBaDuc/sample_app/pull/8","diff_url":"https://github.com/TuBaDuc/sample_app/pull/8.diff","patch_url":"https://github.com/TuBaDuc/sample_app/pull/8.patch","issue_url":"https://api.github.com/repos/TuBaDuc/sample_app/issues/8","number":8,"state":"open","locked":false,"title":"Chapter 14: Add user following","user":{"login":"TuBaDuc","id":22747887,"avatar_url":"https://avatars.githubusercontent.com/u/22747887?v=3","gravatar_id":"","url":"https://api.github.com/users/TuBaDuc","html_url":"https://github.com/TuBaDuc","followers_url":"https://api.github.com/users/TuBaDuc/followers","following_url":"https://api.github.com/users/TuBaDuc/following{/other_user}","gists_url":"https://api.github.com/users/TuBaDuc/gists{/gist_id}","starred_url":"https://api.github.com/users/TuBaDuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuBaDuc/subscriptions","organizations_url":"https://api.github.com/users/TuBaDuc/orgs","repos_url":"https://api.github.com/users/TuBaDuc/repos","events_url":"https://api.github.com/users/TuBaDuc/events{/privacy}","received_events_url":"https://api.github.com/users/TuBaDuc/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-28T08:49:20Z","updated_at":"2016-12-29T00:58:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef09fb5cc9a7dbc6d92613e7b18af08f980e10f8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/8/commits","review_comments_url":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/8/comments","review_comment_url":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TuBaDuc/sample_app/issues/8/comments","statuses_url":"https://api.github.com/repos/TuBaDuc/sample_app/statuses/238f299d499e1697e98e58c3a54dcdac9ddede30","head":{"label":"TuBaDuc:following-users","ref":"following-users","sha":"238f299d499e1697e98e58c3a54dcdac9ddede30","user":{"login":"TuBaDuc","id":22747887,"avatar_url":"https://avatars.githubusercontent.com/u/22747887?v=3","gravatar_id":"","url":"https://api.github.com/users/TuBaDuc","html_url":"https://github.com/TuBaDuc","followers_url":"https://api.github.com/users/TuBaDuc/followers","following_url":"https://api.github.com/users/TuBaDuc/following{/other_user}","gists_url":"https://api.github.com/users/TuBaDuc/gists{/gist_id}","starred_url":"https://api.github.com/users/TuBaDuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuBaDuc/subscriptions","organizations_url":"https://api.github.com/users/TuBaDuc/orgs","repos_url":"https://api.github.com/users/TuBaDuc/repos","events_url":"https://api.github.com/users/TuBaDuc/events{/privacy}","received_events_url":"https://api.github.com/users/TuBaDuc/received_events","type":"User","site_admin":false},"repo":{"id":76939696,"name":"sample_app","full_name":"TuBaDuc/sample_app","owner":{"login":"TuBaDuc","id":22747887,"avatar_url":"https://avatars.githubusercontent.com/u/22747887?v=3","gravatar_id":"","url":"https://api.github.com/users/TuBaDuc","html_url":"https://github.com/TuBaDuc","followers_url":"https://api.github.com/users/TuBaDuc/followers","following_url":"https://api.github.com/users/TuBaDuc/following{/other_user}","gists_url":"https://api.github.com/users/TuBaDuc/gists{/gist_id}","starred_url":"https://api.github.com/users/TuBaDuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuBaDuc/subscriptions","organizations_url":"https://api.github.com/users/TuBaDuc/orgs","repos_url":"https://api.github.com/users/TuBaDuc/repos","events_url":"https://api.github.com/users/TuBaDuc/events{/privacy}","received_events_url":"https://api.github.com/users/TuBaDuc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TuBaDuc/sample_app","description":"chapter 6 - ruby on rails","fork":false,"url":"https://api.github.com/repos/TuBaDuc/sample_app","forks_url":"https://api.github.com/repos/TuBaDuc/sample_app/forks","keys_url":"https://api.github.com/repos/TuBaDuc/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TuBaDuc/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TuBaDuc/sample_app/teams","hooks_url":"https://api.github.com/repos/TuBaDuc/sample_app/hooks","issue_events_url":"https://api.github.com/repos/TuBaDuc/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/TuBaDuc/sample_app/events","assignees_url":"https://api.github.com/repos/TuBaDuc/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/TuBaDuc/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/TuBaDuc/sample_app/tags","blobs_url":"https://api.github.com/repos/TuBaDuc/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TuBaDuc/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TuBaDuc/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/TuBaDuc/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TuBaDuc/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/TuBaDuc/sample_app/languages","stargazers_url":"https://api.github.com/repos/TuBaDuc/sample_app/stargazers","contributors_url":"https://api.github.com/repos/TuBaDuc/sample_app/contributors","subscribers_url":"https://api.github.com/repos/TuBaDuc/sample_app/subscribers","subscription_url":"https://api.github.com/repos/TuBaDuc/sample_app/subscription","commits_url":"https://api.github.com/repos/TuBaDuc/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/TuBaDuc/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/TuBaDuc/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/TuBaDuc/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/TuBaDuc/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/TuBaDuc/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TuBaDuc/sample_app/merges","archive_url":"https://api.github.com/repos/TuBaDuc/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TuBaDuc/sample_app/downloads","issues_url":"https://api.github.com/repos/TuBaDuc/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/TuBaDuc/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/TuBaDuc/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/TuBaDuc/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TuBaDuc/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/TuBaDuc/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/TuBaDuc/sample_app/deployments","created_at":"2016-12-20T08:49:42Z","updated_at":"2016-12-21T10:07:48Z","pushed_at":"2016-12-28T10:51:26Z","git_url":"git://github.com/TuBaDuc/sample_app.git","ssh_url":"git@github.com:TuBaDuc/sample_app.git","clone_url":"https://github.com/TuBaDuc/sample_app.git","svn_url":"https://github.com/TuBaDuc/sample_app","homepage":"","size":289,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"TuBaDuc:user-microposts","ref":"user-microposts","sha":"15796d05d9bf1536272486476a636cd7c4240281","user":{"login":"TuBaDuc","id":22747887,"avatar_url":"https://avatars.githubusercontent.com/u/22747887?v=3","gravatar_id":"","url":"https://api.github.com/users/TuBaDuc","html_url":"https://github.com/TuBaDuc","followers_url":"https://api.github.com/users/TuBaDuc/followers","following_url":"https://api.github.com/users/TuBaDuc/following{/other_user}","gists_url":"https://api.github.com/users/TuBaDuc/gists{/gist_id}","starred_url":"https://api.github.com/users/TuBaDuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuBaDuc/subscriptions","organizations_url":"https://api.github.com/users/TuBaDuc/orgs","repos_url":"https://api.github.com/users/TuBaDuc/repos","events_url":"https://api.github.com/users/TuBaDuc/events{/privacy}","received_events_url":"https://api.github.com/users/TuBaDuc/received_events","type":"User","site_admin":false},"repo":{"id":76939696,"name":"sample_app","full_name":"TuBaDuc/sample_app","owner":{"login":"TuBaDuc","id":22747887,"avatar_url":"https://avatars.githubusercontent.com/u/22747887?v=3","gravatar_id":"","url":"https://api.github.com/users/TuBaDuc","html_url":"https://github.com/TuBaDuc","followers_url":"https://api.github.com/users/TuBaDuc/followers","following_url":"https://api.github.com/users/TuBaDuc/following{/other_user}","gists_url":"https://api.github.com/users/TuBaDuc/gists{/gist_id}","starred_url":"https://api.github.com/users/TuBaDuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TuBaDuc/subscriptions","organizations_url":"https://api.github.com/users/TuBaDuc/orgs","repos_url":"https://api.github.com/users/TuBaDuc/repos","events_url":"https://api.github.com/users/TuBaDuc/events{/privacy}","received_events_url":"https://api.github.com/users/TuBaDuc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TuBaDuc/sample_app","description":"chapter 6 - ruby on rails","fork":false,"url":"https://api.github.com/repos/TuBaDuc/sample_app","forks_url":"https://api.github.com/repos/TuBaDuc/sample_app/forks","keys_url":"https://api.github.com/repos/TuBaDuc/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TuBaDuc/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TuBaDuc/sample_app/teams","hooks_url":"https://api.github.com/repos/TuBaDuc/sample_app/hooks","issue_events_url":"https://api.github.com/repos/TuBaDuc/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/TuBaDuc/sample_app/events","assignees_url":"https://api.github.com/repos/TuBaDuc/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/TuBaDuc/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/TuBaDuc/sample_app/tags","blobs_url":"https://api.github.com/repos/TuBaDuc/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TuBaDuc/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TuBaDuc/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/TuBaDuc/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TuBaDuc/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/TuBaDuc/sample_app/languages","stargazers_url":"https://api.github.com/repos/TuBaDuc/sample_app/stargazers","contributors_url":"https://api.github.com/repos/TuBaDuc/sample_app/contributors","subscribers_url":"https://api.github.com/repos/TuBaDuc/sample_app/subscribers","subscription_url":"https://api.github.com/repos/TuBaDuc/sample_app/subscription","commits_url":"https://api.github.com/repos/TuBaDuc/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/TuBaDuc/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/TuBaDuc/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/TuBaDuc/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/TuBaDuc/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/TuBaDuc/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TuBaDuc/sample_app/merges","archive_url":"https://api.github.com/repos/TuBaDuc/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TuBaDuc/sample_app/downloads","issues_url":"https://api.github.com/repos/TuBaDuc/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/TuBaDuc/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/TuBaDuc/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/TuBaDuc/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TuBaDuc/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/TuBaDuc/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/TuBaDuc/sample_app/deployments","created_at":"2016-12-20T08:49:42Z","updated_at":"2016-12-21T10:07:48Z","pushed_at":"2016-12-28T10:51:26Z","git_url":"git://github.com/TuBaDuc/sample_app.git","ssh_url":"git@github.com:TuBaDuc/sample_app.git","clone_url":"https://github.com/TuBaDuc/sample_app.git","svn_url":"https://github.com/TuBaDuc/sample_app","homepage":"","size":289,"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":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/8"},"html":{"href":"https://github.com/TuBaDuc/sample_app/pull/8"},"issue":{"href":"https://api.github.com/repos/TuBaDuc/sample_app/issues/8"},"comments":{"href":"https://api.github.com/repos/TuBaDuc/sample_app/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TuBaDuc/sample_app/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/TuBaDuc/sample_app/statuses/238f299d499e1697e98e58c3a54dcdac9ddede30"}}}}
{"actor":{"display_login":"dieunb"}}