{"action":"created","comment":{"url":"https://api.github.com/repos/Daikadiep/sample_app/pulls/comments/87754292","pull_request_review_id":8352769,"id":87754292,"diff_hunk":"@@ -0,0 +1,21 @@\n+class RelationshipsController < ApplicationController\n+  before_action :logged_in_user\n+\n+  def create\n+    @user = User.find params[:followed_id]\n+    current_user.follow(@user)","path":"app/controllers/relationships_controller.rb","position":6,"original_position":6,"commit_id":"ce39db3555ffd74979fb06e4324d4307a50e03f0","original_commit_id":"ce39db3555ffd74979fb06e4324d4307a50e03f0","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":"remove ()","created_at":"2016-11-14T08:23:35Z","updated_at":"2016-11-14T08:23:35Z","html_url":"https://github.com/Daikadiep/sample_app/pull/10#discussion_r87754292","pull_request_url":"https://api.github.com/repos/Daikadiep/sample_app/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/Daikadiep/sample_app/pulls/comments/87754292"},"html":{"href":"https://github.com/Daikadiep/sample_app/pull/10#discussion_r87754292"},"pull_request":{"href":"https://api.github.com/repos/Daikadiep/sample_app/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/Daikadiep/sample_app/pulls/10","id":93519972,"html_url":"https://github.com/Daikadiep/sample_app/pull/10","diff_url":"https://github.com/Daikadiep/sample_app/pull/10.diff","patch_url":"https://github.com/Daikadiep/sample_app/pull/10.patch","issue_url":"https://api.github.com/repos/Daikadiep/sample_app/issues/10","number":10,"state":"open","locked":false,"title":"chap 14","user":{"login":"Daikadiep","id":22831926,"avatar_url":"https://avatars.githubusercontent.com/u/22831926?v=3","gravatar_id":"","url":"https://api.github.com/users/Daikadiep","html_url":"https://github.com/Daikadiep","followers_url":"https://api.github.com/users/Daikadiep/followers","following_url":"https://api.github.com/users/Daikadiep/following{/other_user}","gists_url":"https://api.github.com/users/Daikadiep/gists{/gist_id}","starred_url":"https://api.github.com/users/Daikadiep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daikadiep/subscriptions","organizations_url":"https://api.github.com/users/Daikadiep/orgs","repos_url":"https://api.github.com/users/Daikadiep/repos","events_url":"https://api.github.com/users/Daikadiep/events{/privacy}","received_events_url":"https://api.github.com/users/Daikadiep/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-14T07:35:10Z","updated_at":"2016-11-14T08:23:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6666de7da1f960c780c5e2b804bc7d2921e6ebe7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Daikadiep/sample_app/pulls/10/commits","review_comments_url":"https://api.github.com/repos/Daikadiep/sample_app/pulls/10/comments","review_comment_url":"https://api.github.com/repos/Daikadiep/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Daikadiep/sample_app/issues/10/comments","statuses_url":"https://api.github.com/repos/Daikadiep/sample_app/statuses/ce39db3555ffd74979fb06e4324d4307a50e03f0","head":{"label":"Daikadiep:following-users","ref":"following-users","sha":"ce39db3555ffd74979fb06e4324d4307a50e03f0","user":{"login":"Daikadiep","id":22831926,"avatar_url":"https://avatars.githubusercontent.com/u/22831926?v=3","gravatar_id":"","url":"https://api.github.com/users/Daikadiep","html_url":"https://github.com/Daikadiep","followers_url":"https://api.github.com/users/Daikadiep/followers","following_url":"https://api.github.com/users/Daikadiep/following{/other_user}","gists_url":"https://api.github.com/users/Daikadiep/gists{/gist_id}","starred_url":"https://api.github.com/users/Daikadiep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daikadiep/subscriptions","organizations_url":"https://api.github.com/users/Daikadiep/orgs","repos_url":"https://api.github.com/users/Daikadiep/repos","events_url":"https://api.github.com/users/Daikadiep/events{/privacy}","received_events_url":"https://api.github.com/users/Daikadiep/received_events","type":"User","site_admin":false},"repo":{"id":71195815,"name":"sample_app","full_name":"Daikadiep/sample_app","owner":{"login":"Daikadiep","id":22831926,"avatar_url":"https://avatars.githubusercontent.com/u/22831926?v=3","gravatar_id":"","url":"https://api.github.com/users/Daikadiep","html_url":"https://github.com/Daikadiep","followers_url":"https://api.github.com/users/Daikadiep/followers","following_url":"https://api.github.com/users/Daikadiep/following{/other_user}","gists_url":"https://api.github.com/users/Daikadiep/gists{/gist_id}","starred_url":"https://api.github.com/users/Daikadiep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daikadiep/subscriptions","organizations_url":"https://api.github.com/users/Daikadiep/orgs","repos_url":"https://api.github.com/users/Daikadiep/repos","events_url":"https://api.github.com/users/Daikadiep/events{/privacy}","received_events_url":"https://api.github.com/users/Daikadiep/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Daikadiep/sample_app","description":"Rails Tutorial","fork":false,"url":"https://api.github.com/repos/Daikadiep/sample_app","forks_url":"https://api.github.com/repos/Daikadiep/sample_app/forks","keys_url":"https://api.github.com/repos/Daikadiep/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Daikadiep/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Daikadiep/sample_app/teams","hooks_url":"https://api.github.com/repos/Daikadiep/sample_app/hooks","issue_events_url":"https://api.github.com/repos/Daikadiep/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/Daikadiep/sample_app/events","assignees_url":"https://api.github.com/repos/Daikadiep/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/Daikadiep/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/Daikadiep/sample_app/tags","blobs_url":"https://api.github.com/repos/Daikadiep/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Daikadiep/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Daikadiep/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Daikadiep/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Daikadiep/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/Daikadiep/sample_app/languages","stargazers_url":"https://api.github.com/repos/Daikadiep/sample_app/stargazers","contributors_url":"https://api.github.com/repos/Daikadiep/sample_app/contributors","subscribers_url":"https://api.github.com/repos/Daikadiep/sample_app/subscribers","subscription_url":"https://api.github.com/repos/Daikadiep/sample_app/subscription","commits_url":"https://api.github.com/repos/Daikadiep/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Daikadiep/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Daikadiep/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Daikadiep/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Daikadiep/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/Daikadiep/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Daikadiep/sample_app/merges","archive_url":"https://api.github.com/repos/Daikadiep/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Daikadiep/sample_app/downloads","issues_url":"https://api.github.com/repos/Daikadiep/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/Daikadiep/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/Daikadiep/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/Daikadiep/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Daikadiep/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/Daikadiep/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/Daikadiep/sample_app/deployments","created_at":"2016-10-18T01:20:50Z","updated_at":"2016-10-18T01:22:28Z","pushed_at":"2016-11-14T07:35:10Z","git_url":"git://github.com/Daikadiep/sample_app.git","ssh_url":"git@github.com:Daikadiep/sample_app.git","clone_url":"https://github.com/Daikadiep/sample_app.git","svn_url":"https://github.com/Daikadiep/sample_app","homepage":null,"size":142,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Daikadiep:master","ref":"master","sha":"479f26022c581b643bb43195cc6019358b039889","user":{"login":"Daikadiep","id":22831926,"avatar_url":"https://avatars.githubusercontent.com/u/22831926?v=3","gravatar_id":"","url":"https://api.github.com/users/Daikadiep","html_url":"https://github.com/Daikadiep","followers_url":"https://api.github.com/users/Daikadiep/followers","following_url":"https://api.github.com/users/Daikadiep/following{/other_user}","gists_url":"https://api.github.com/users/Daikadiep/gists{/gist_id}","starred_url":"https://api.github.com/users/Daikadiep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daikadiep/subscriptions","organizations_url":"https://api.github.com/users/Daikadiep/orgs","repos_url":"https://api.github.com/users/Daikadiep/repos","events_url":"https://api.github.com/users/Daikadiep/events{/privacy}","received_events_url":"https://api.github.com/users/Daikadiep/received_events","type":"User","site_admin":false},"repo":{"id":71195815,"name":"sample_app","full_name":"Daikadiep/sample_app","owner":{"login":"Daikadiep","id":22831926,"avatar_url":"https://avatars.githubusercontent.com/u/22831926?v=3","gravatar_id":"","url":"https://api.github.com/users/Daikadiep","html_url":"https://github.com/Daikadiep","followers_url":"https://api.github.com/users/Daikadiep/followers","following_url":"https://api.github.com/users/Daikadiep/following{/other_user}","gists_url":"https://api.github.com/users/Daikadiep/gists{/gist_id}","starred_url":"https://api.github.com/users/Daikadiep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daikadiep/subscriptions","organizations_url":"https://api.github.com/users/Daikadiep/orgs","repos_url":"https://api.github.com/users/Daikadiep/repos","events_url":"https://api.github.com/users/Daikadiep/events{/privacy}","received_events_url":"https://api.github.com/users/Daikadiep/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Daikadiep/sample_app","description":"Rails Tutorial","fork":false,"url":"https://api.github.com/repos/Daikadiep/sample_app","forks_url":"https://api.github.com/repos/Daikadiep/sample_app/forks","keys_url":"https://api.github.com/repos/Daikadiep/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Daikadiep/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Daikadiep/sample_app/teams","hooks_url":"https://api.github.com/repos/Daikadiep/sample_app/hooks","issue_events_url":"https://api.github.com/repos/Daikadiep/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/Daikadiep/sample_app/events","assignees_url":"https://api.github.com/repos/Daikadiep/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/Daikadiep/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/Daikadiep/sample_app/tags","blobs_url":"https://api.github.com/repos/Daikadiep/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Daikadiep/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Daikadiep/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Daikadiep/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Daikadiep/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/Daikadiep/sample_app/languages","stargazers_url":"https://api.github.com/repos/Daikadiep/sample_app/stargazers","contributors_url":"https://api.github.com/repos/Daikadiep/sample_app/contributors","subscribers_url":"https://api.github.com/repos/Daikadiep/sample_app/subscribers","subscription_url":"https://api.github.com/repos/Daikadiep/sample_app/subscription","commits_url":"https://api.github.com/repos/Daikadiep/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Daikadiep/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Daikadiep/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Daikadiep/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Daikadiep/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/Daikadiep/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Daikadiep/sample_app/merges","archive_url":"https://api.github.com/repos/Daikadiep/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Daikadiep/sample_app/downloads","issues_url":"https://api.github.com/repos/Daikadiep/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/Daikadiep/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/Daikadiep/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/Daikadiep/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Daikadiep/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/Daikadiep/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/Daikadiep/sample_app/deployments","created_at":"2016-10-18T01:20:50Z","updated_at":"2016-10-18T01:22:28Z","pushed_at":"2016-11-14T07:35:10Z","git_url":"git://github.com/Daikadiep/sample_app.git","ssh_url":"git@github.com:Daikadiep/sample_app.git","clone_url":"https://github.com/Daikadiep/sample_app.git","svn_url":"https://github.com/Daikadiep/sample_app","homepage":null,"size":142,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Daikadiep/sample_app/pulls/10"},"html":{"href":"https://github.com/Daikadiep/sample_app/pull/10"},"issue":{"href":"https://api.github.com/repos/Daikadiep/sample_app/issues/10"},"comments":{"href":"https://api.github.com/repos/Daikadiep/sample_app/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/Daikadiep/sample_app/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/Daikadiep/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Daikadiep/sample_app/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/Daikadiep/sample_app/statuses/ce39db3555ffd74979fb06e4324d4307a50e03f0"}}}}
{"actor":{"display_login":"nhunght"}}