{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_40/pulls/comments/89042057","pull_request_review_id":9593516,"id":89042057,"diff_hunk":"@@ -0,0 +1,86 @@\n+class CommentsController < ApplicationController\n+  before_action :logged_in_user\n+  before_action :find_review\n+  before_action :find_comment, except: [:new, :create]\n+  before_action :valid_user, only: [:edit, :update, :destroy]\n+\n+  def index\n+  end\n+\n+  def new\n+    @comment = Comment.new\n+  end\n+\n+  def create\n+    @comment = current_user.comments.build comment_params\n+    @comment.review_rate_id = @review.id","path":"app/controllers/comments_controller.rb","position":16,"original_position":16,"commit_id":"e4634384f099feb617c5454e6e9eb93ede8f2169","original_commit_id":"e4634384f099feb617c5454e6e9eb93ede8f2169","user":{"login":"hellovietnam93","id":8023606,"avatar_url":"https://avatars.githubusercontent.com/u/8023606?v=3","gravatar_id":"","url":"https://api.github.com/users/hellovietnam93","html_url":"https://github.com/hellovietnam93","followers_url":"https://api.github.com/users/hellovietnam93/followers","following_url":"https://api.github.com/users/hellovietnam93/following{/other_user}","gists_url":"https://api.github.com/users/hellovietnam93/gists{/gist_id}","starred_url":"https://api.github.com/users/hellovietnam93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellovietnam93/subscriptions","organizations_url":"https://api.github.com/users/hellovietnam93/orgs","repos_url":"https://api.github.com/users/hellovietnam93/repos","events_url":"https://api.github.com/users/hellovietnam93/events{/privacy}","received_events_url":"https://api.github.com/users/hellovietnam93/received_events","type":"User","site_admin":false},"body":"@comment.review_rate = @review","created_at":"2016-11-22T04:32:20Z","updated_at":"2016-11-22T04:32:20Z","html_url":"https://github.com/framgia/brs_40/pull/15#discussion_r89042057","pull_request_url":"https://api.github.com/repos/framgia/brs_40/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_40/pulls/comments/89042057"},"html":{"href":"https://github.com/framgia/brs_40/pull/15#discussion_r89042057"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_40/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_40/pulls/15","id":94746034,"html_url":"https://github.com/framgia/brs_40/pull/15","diff_url":"https://github.com/framgia/brs_40/pull/15.diff","patch_url":"https://github.com/framgia/brs_40/pull/15.patch","issue_url":"https://api.github.com/repos/framgia/brs_40/issues/15","number":15,"state":"open","locked":false,"title":"comment reviews p1","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-11-22T04:23:26Z","updated_at":"2016-11-22T04:34:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"769d72a2ba8efb9180888cf6ebb06a4fce5e3a4a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_40/pulls/15/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_40/pulls/15/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_40/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_40/issues/15/comments","statuses_url":"https://api.github.com/repos/framgia/brs_40/statuses/e4634384f099feb617c5454e6e9eb93ede8f2169","head":{"label":"PhanTrungDuc:comment-reviews-p1","ref":"comment-reviews-p1","sha":"e4634384f099feb617c5454e6e9eb93ede8f2169","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":72189938,"name":"brs_40","full_name":"PhanTrungDuc/brs_40","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/brs_40","description":"Framgia Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/PhanTrungDuc/brs_40","forks_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/forks","keys_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/teams","hooks_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/hooks","issue_events_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/issues/events{/number}","events_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/events","assignees_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/assignees{/user}","branches_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/branches{/branch}","tags_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/tags","blobs_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/git/refs{/sha}","trees_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/statuses/{sha}","languages_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/languages","stargazers_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/stargazers","contributors_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/contributors","subscribers_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/subscribers","subscription_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/subscription","commits_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/commits{/sha}","git_commits_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/git/commits{/sha}","comments_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/comments{/number}","issue_comment_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/issues/comments{/number}","contents_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/contents/{+path}","compare_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/merges","archive_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/downloads","issues_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/issues{/number}","pulls_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/pulls{/number}","milestones_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/milestones{/number}","notifications_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/labels{/name}","releases_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/releases{/id}","deployments_url":"https://api.github.com/repos/PhanTrungDuc/brs_40/deployments","created_at":"2016-10-28T08:40:38Z","updated_at":"2016-10-27T03:29:47Z","pushed_at":"2016-11-22T04:30:49Z","git_url":"git://github.com/PhanTrungDuc/brs_40.git","ssh_url":"git@github.com:PhanTrungDuc/brs_40.git","clone_url":"https://github.com/PhanTrungDuc/brs_40.git","svn_url":"https://github.com/PhanTrungDuc/brs_40","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"9923a29b2368ad912429a59b163de0174ad5ddee","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":72067687,"name":"brs_40","full_name":"framgia/brs_40","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/brs_40","description":"Framgia Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_40","forks_url":"https://api.github.com/repos/framgia/brs_40/forks","keys_url":"https://api.github.com/repos/framgia/brs_40/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_40/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_40/teams","hooks_url":"https://api.github.com/repos/framgia/brs_40/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_40/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_40/events","assignees_url":"https://api.github.com/repos/framgia/brs_40/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_40/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_40/tags","blobs_url":"https://api.github.com/repos/framgia/brs_40/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_40/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_40/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_40/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_40/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_40/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_40/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_40/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_40/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_40/subscription","commits_url":"https://api.github.com/repos/framgia/brs_40/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_40/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_40/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_40/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_40/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_40/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_40/merges","archive_url":"https://api.github.com/repos/framgia/brs_40/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_40/downloads","issues_url":"https://api.github.com/repos/framgia/brs_40/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_40/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_40/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_40/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_40/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_40/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_40/deployments","created_at":"2016-10-27T03:29:47Z","updated_at":"2016-10-27T03:29:47Z","pushed_at":"2016-11-22T04:30:49Z","git_url":"git://github.com/framgia/brs_40.git","ssh_url":"git@github.com:framgia/brs_40.git","clone_url":"https://github.com/framgia/brs_40.git","svn_url":"https://github.com/framgia/brs_40","homepage":null,"size":143,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_40/pulls/15"},"html":{"href":"https://github.com/framgia/brs_40/pull/15"},"issue":{"href":"https://api.github.com/repos/framgia/brs_40/issues/15"},"comments":{"href":"https://api.github.com/repos/framgia/brs_40/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_40/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_40/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_40/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_40/statuses/e4634384f099feb617c5454e6e9eb93ede8f2169"}}}}
{"actor":{"display_login":"hellovietnam93"}}