{"action":"created","comment":{"url":"https://api.github.com/repos/damquangtan/sample_app/pulls/comments/83992407","pull_request_review_id":4798845,"id":83992407,"diff_hunk":"@@ -1,5 +1,11 @@\n class User < ApplicationRecord\n   has_many :microposts, dependent: :destroy\n+  has_many :active_relationships, class_name:  \"Relationship\",","path":"app/models/user.rb","position":3,"original_position":3,"commit_id":"7b2f7a6c907bd9c7a9bd19042eb5e7dfac141f5d","original_commit_id":"7b2f7a6c907bd9c7a9bd19042eb5e7dfac141f5d","user":{"login":"nhunght","id":14239703,"avatar_url":"https://avatars.githubusercontent.com/u/14239703?v=3","gravatar_id":"","url":"https://api.github.com/users/nhunght","html_url":"https://github.com/nhunght","followers_url":"https://api.github.com/users/nhunght/followers","following_url":"https://api.github.com/users/nhunght/following{/other_user}","gists_url":"https://api.github.com/users/nhunght/gists{/gist_id}","starred_url":"https://api.github.com/users/nhunght/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhunght/subscriptions","organizations_url":"https://api.github.com/users/nhunght/orgs","repos_url":"https://api.github.com/users/nhunght/repos","events_url":"https://api.github.com/users/nhunght/events{/privacy}","received_events_url":"https://api.github.com/users/nhunght/received_events","type":"User","site_admin":false},"body":" class_name:  Relationship.name","created_at":"2016-10-19T03:32:01Z","updated_at":"2016-10-19T03:32:01Z","html_url":"https://github.com/damquangtan/sample_app/pull/8#discussion_r83992407","pull_request_url":"https://api.github.com/repos/damquangtan/sample_app/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/damquangtan/sample_app/pulls/comments/83992407"},"html":{"href":"https://github.com/damquangtan/sample_app/pull/8#discussion_r83992407"},"pull_request":{"href":"https://api.github.com/repos/damquangtan/sample_app/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/damquangtan/sample_app/pulls/8","id":89935225,"html_url":"https://github.com/damquangtan/sample_app/pull/8","diff_url":"https://github.com/damquangtan/sample_app/pull/8.diff","patch_url":"https://github.com/damquangtan/sample_app/pull/8.patch","issue_url":"https://api.github.com/repos/damquangtan/sample_app/issues/8","number":8,"state":"open","locked":false,"title":"Finish chapter 14","user":{"login":"damquangtan","id":19524320,"avatar_url":"https://avatars.githubusercontent.com/u/19524320?v=3","gravatar_id":"","url":"https://api.github.com/users/damquangtan","html_url":"https://github.com/damquangtan","followers_url":"https://api.github.com/users/damquangtan/followers","following_url":"https://api.github.com/users/damquangtan/following{/other_user}","gists_url":"https://api.github.com/users/damquangtan/gists{/gist_id}","starred_url":"https://api.github.com/users/damquangtan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damquangtan/subscriptions","organizations_url":"https://api.github.com/users/damquangtan/orgs","repos_url":"https://api.github.com/users/damquangtan/repos","events_url":"https://api.github.com/users/damquangtan/events{/privacy}","received_events_url":"https://api.github.com/users/damquangtan/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-19T03:12:43Z","updated_at":"2016-10-19T03:32:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5ed24d5930ed4961e7682a5d26fafb49a654472","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/damquangtan/sample_app/pulls/8/commits","review_comments_url":"https://api.github.com/repos/damquangtan/sample_app/pulls/8/comments","review_comment_url":"https://api.github.com/repos/damquangtan/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/damquangtan/sample_app/issues/8/comments","statuses_url":"https://api.github.com/repos/damquangtan/sample_app/statuses/7b2f7a6c907bd9c7a9bd19042eb5e7dfac141f5d","head":{"label":"damquangtan:chapter14","ref":"chapter14","sha":"7b2f7a6c907bd9c7a9bd19042eb5e7dfac141f5d","user":{"login":"damquangtan","id":19524320,"avatar_url":"https://avatars.githubusercontent.com/u/19524320?v=3","gravatar_id":"","url":"https://api.github.com/users/damquangtan","html_url":"https://github.com/damquangtan","followers_url":"https://api.github.com/users/damquangtan/followers","following_url":"https://api.github.com/users/damquangtan/following{/other_user}","gists_url":"https://api.github.com/users/damquangtan/gists{/gist_id}","starred_url":"https://api.github.com/users/damquangtan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damquangtan/subscriptions","organizations_url":"https://api.github.com/users/damquangtan/orgs","repos_url":"https://api.github.com/users/damquangtan/repos","events_url":"https://api.github.com/users/damquangtan/events{/privacy}","received_events_url":"https://api.github.com/users/damquangtan/received_events","type":"User","site_admin":false},"repo":{"id":70653436,"name":"sample_app","full_name":"damquangtan/sample_app","owner":{"login":"damquangtan","id":19524320,"avatar_url":"https://avatars.githubusercontent.com/u/19524320?v=3","gravatar_id":"","url":"https://api.github.com/users/damquangtan","html_url":"https://github.com/damquangtan","followers_url":"https://api.github.com/users/damquangtan/followers","following_url":"https://api.github.com/users/damquangtan/following{/other_user}","gists_url":"https://api.github.com/users/damquangtan/gists{/gist_id}","starred_url":"https://api.github.com/users/damquangtan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damquangtan/subscriptions","organizations_url":"https://api.github.com/users/damquangtan/orgs","repos_url":"https://api.github.com/users/damquangtan/repos","events_url":"https://api.github.com/users/damquangtan/events{/privacy}","received_events_url":"https://api.github.com/users/damquangtan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/damquangtan/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/damquangtan/sample_app","forks_url":"https://api.github.com/repos/damquangtan/sample_app/forks","keys_url":"https://api.github.com/repos/damquangtan/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/damquangtan/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/damquangtan/sample_app/teams","hooks_url":"https://api.github.com/repos/damquangtan/sample_app/hooks","issue_events_url":"https://api.github.com/repos/damquangtan/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/damquangtan/sample_app/events","assignees_url":"https://api.github.com/repos/damquangtan/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/damquangtan/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/damquangtan/sample_app/tags","blobs_url":"https://api.github.com/repos/damquangtan/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/damquangtan/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/damquangtan/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/damquangtan/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/damquangtan/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/damquangtan/sample_app/languages","stargazers_url":"https://api.github.com/repos/damquangtan/sample_app/stargazers","contributors_url":"https://api.github.com/repos/damquangtan/sample_app/contributors","subscribers_url":"https://api.github.com/repos/damquangtan/sample_app/subscribers","subscription_url":"https://api.github.com/repos/damquangtan/sample_app/subscription","commits_url":"https://api.github.com/repos/damquangtan/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/damquangtan/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/damquangtan/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/damquangtan/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/damquangtan/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/damquangtan/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/damquangtan/sample_app/merges","archive_url":"https://api.github.com/repos/damquangtan/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/damquangtan/sample_app/downloads","issues_url":"https://api.github.com/repos/damquangtan/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/damquangtan/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/damquangtan/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/damquangtan/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/damquangtan/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/damquangtan/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/damquangtan/sample_app/deployments","created_at":"2016-10-12T02:13:01Z","updated_at":"2016-10-12T02:16:51Z","pushed_at":"2016-10-19T03:21:46Z","git_url":"git://github.com/damquangtan/sample_app.git","ssh_url":"git@github.com:damquangtan/sample_app.git","clone_url":"https://github.com/damquangtan/sample_app.git","svn_url":"https://github.com/damquangtan/sample_app","homepage":null,"size":79,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"damquangtan:master","ref":"master","sha":"94112d40ddfa6280ab686902683dce7200357db9","user":{"login":"damquangtan","id":19524320,"avatar_url":"https://avatars.githubusercontent.com/u/19524320?v=3","gravatar_id":"","url":"https://api.github.com/users/damquangtan","html_url":"https://github.com/damquangtan","followers_url":"https://api.github.com/users/damquangtan/followers","following_url":"https://api.github.com/users/damquangtan/following{/other_user}","gists_url":"https://api.github.com/users/damquangtan/gists{/gist_id}","starred_url":"https://api.github.com/users/damquangtan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damquangtan/subscriptions","organizations_url":"https://api.github.com/users/damquangtan/orgs","repos_url":"https://api.github.com/users/damquangtan/repos","events_url":"https://api.github.com/users/damquangtan/events{/privacy}","received_events_url":"https://api.github.com/users/damquangtan/received_events","type":"User","site_admin":false},"repo":{"id":70653436,"name":"sample_app","full_name":"damquangtan/sample_app","owner":{"login":"damquangtan","id":19524320,"avatar_url":"https://avatars.githubusercontent.com/u/19524320?v=3","gravatar_id":"","url":"https://api.github.com/users/damquangtan","html_url":"https://github.com/damquangtan","followers_url":"https://api.github.com/users/damquangtan/followers","following_url":"https://api.github.com/users/damquangtan/following{/other_user}","gists_url":"https://api.github.com/users/damquangtan/gists{/gist_id}","starred_url":"https://api.github.com/users/damquangtan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damquangtan/subscriptions","organizations_url":"https://api.github.com/users/damquangtan/orgs","repos_url":"https://api.github.com/users/damquangtan/repos","events_url":"https://api.github.com/users/damquangtan/events{/privacy}","received_events_url":"https://api.github.com/users/damquangtan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/damquangtan/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/damquangtan/sample_app","forks_url":"https://api.github.com/repos/damquangtan/sample_app/forks","keys_url":"https://api.github.com/repos/damquangtan/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/damquangtan/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/damquangtan/sample_app/teams","hooks_url":"https://api.github.com/repos/damquangtan/sample_app/hooks","issue_events_url":"https://api.github.com/repos/damquangtan/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/damquangtan/sample_app/events","assignees_url":"https://api.github.com/repos/damquangtan/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/damquangtan/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/damquangtan/sample_app/tags","blobs_url":"https://api.github.com/repos/damquangtan/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/damquangtan/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/damquangtan/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/damquangtan/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/damquangtan/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/damquangtan/sample_app/languages","stargazers_url":"https://api.github.com/repos/damquangtan/sample_app/stargazers","contributors_url":"https://api.github.com/repos/damquangtan/sample_app/contributors","subscribers_url":"https://api.github.com/repos/damquangtan/sample_app/subscribers","subscription_url":"https://api.github.com/repos/damquangtan/sample_app/subscription","commits_url":"https://api.github.com/repos/damquangtan/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/damquangtan/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/damquangtan/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/damquangtan/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/damquangtan/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/damquangtan/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/damquangtan/sample_app/merges","archive_url":"https://api.github.com/repos/damquangtan/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/damquangtan/sample_app/downloads","issues_url":"https://api.github.com/repos/damquangtan/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/damquangtan/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/damquangtan/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/damquangtan/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/damquangtan/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/damquangtan/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/damquangtan/sample_app/deployments","created_at":"2016-10-12T02:13:01Z","updated_at":"2016-10-12T02:16:51Z","pushed_at":"2016-10-19T03:21:46Z","git_url":"git://github.com/damquangtan/sample_app.git","ssh_url":"git@github.com:damquangtan/sample_app.git","clone_url":"https://github.com/damquangtan/sample_app.git","svn_url":"https://github.com/damquangtan/sample_app","homepage":null,"size":79,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/damquangtan/sample_app/pulls/8"},"html":{"href":"https://github.com/damquangtan/sample_app/pull/8"},"issue":{"href":"https://api.github.com/repos/damquangtan/sample_app/issues/8"},"comments":{"href":"https://api.github.com/repos/damquangtan/sample_app/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/damquangtan/sample_app/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/damquangtan/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/damquangtan/sample_app/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/damquangtan/sample_app/statuses/7b2f7a6c907bd9c7a9bd19042eb5e7dfac141f5d"}}}}
{"actor":{"display_login":"nhunght"}}