{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/manager_library/pulls/comments/206053825","pull_request_review_id":141438069,"id":206053825,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjA1MzgyNQ==","diff_hunk":"@@ -0,0 +1,67 @@\n+class CommentsController < ApplicationController\n+  before_action :find_book, only: %i(create show edit update destroy)\n+  before_action :find_comment, only: %i(edit update destroy)\n+\n+  def index\n+    @comment = Comment.all_comments\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.book_id = @book.id\n+    @comment.accepted = 1","path":"app/controllers/comments_controller.rb","position":16,"original_position":16,"commit_id":"53dc7cea6247a033953a4da3bd65db969525daef","original_commit_id":"53dc7cea6247a033953a4da3bd65db969525daef","user":{"login":"anhnt796","id":30051821,"node_id":"MDQ6VXNlcjMwMDUxODIx","avatar_url":"https://avatars1.githubusercontent.com/u/30051821?v=4","gravatar_id":"","url":"https://api.github.com/users/anhnt796","html_url":"https://github.com/anhnt796","followers_url":"https://api.github.com/users/anhnt796/followers","following_url":"https://api.github.com/users/anhnt796/following{/other_user}","gists_url":"https://api.github.com/users/anhnt796/gists{/gist_id}","starred_url":"https://api.github.com/users/anhnt796/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anhnt796/subscriptions","organizations_url":"https://api.github.com/users/anhnt796/orgs","repos_url":"https://api.github.com/users/anhnt796/repos","events_url":"https://api.github.com/users/anhnt796/events{/privacy}","received_events_url":"https://api.github.com/users/anhnt796/received_events","type":"User","site_admin":false},"body":"enum","created_at":"2018-07-30T08:40:06Z","updated_at":"2018-07-30T08:40:06Z","html_url":"https://github.com/framgia/manager_library/pull/17#discussion_r206053825","pull_request_url":"https://api.github.com/repos/framgia/manager_library/pulls/17","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/framgia/manager_library/pulls/comments/206053825"},"html":{"href":"https://github.com/framgia/manager_library/pull/17#discussion_r206053825"},"pull_request":{"href":"https://api.github.com/repos/framgia/manager_library/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/manager_library/pulls/17","id":204731832,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NzMxODMy","html_url":"https://github.com/framgia/manager_library/pull/17","diff_url":"https://github.com/framgia/manager_library/pull/17.diff","patch_url":"https://github.com/framgia/manager_library/pull/17.patch","issue_url":"https://api.github.com/repos/framgia/manager_library/issues/17","number":17,"state":"open","locked":false,"title":"Add comment","user":{"login":"canhchimmcodon","id":40779936,"node_id":"MDQ6VXNlcjQwNzc5OTM2","avatar_url":"https://avatars1.githubusercontent.com/u/40779936?v=4","gravatar_id":"","url":"https://api.github.com/users/canhchimmcodon","html_url":"https://github.com/canhchimmcodon","followers_url":"https://api.github.com/users/canhchimmcodon/followers","following_url":"https://api.github.com/users/canhchimmcodon/following{/other_user}","gists_url":"https://api.github.com/users/canhchimmcodon/gists{/gist_id}","starred_url":"https://api.github.com/users/canhchimmcodon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canhchimmcodon/subscriptions","organizations_url":"https://api.github.com/users/canhchimmcodon/orgs","repos_url":"https://api.github.com/users/canhchimmcodon/repos","events_url":"https://api.github.com/users/canhchimmcodon/events{/privacy}","received_events_url":"https://api.github.com/users/canhchimmcodon/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-30T08:38:22Z","updated_at":"2018-07-30T08:40:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cebee38b5b0d05e95fe1aac9a2dc0540e6a815fa","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/manager_library/pulls/17/commits","review_comments_url":"https://api.github.com/repos/framgia/manager_library/pulls/17/comments","review_comment_url":"https://api.github.com/repos/framgia/manager_library/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/manager_library/issues/17/comments","statuses_url":"https://api.github.com/repos/framgia/manager_library/statuses/53dc7cea6247a033953a4da3bd65db969525daef","head":{"label":"canhchimmcodon:create_comment","ref":"create_comment","sha":"53dc7cea6247a033953a4da3bd65db969525daef","user":{"login":"canhchimmcodon","id":40779936,"node_id":"MDQ6VXNlcjQwNzc5OTM2","avatar_url":"https://avatars1.githubusercontent.com/u/40779936?v=4","gravatar_id":"","url":"https://api.github.com/users/canhchimmcodon","html_url":"https://github.com/canhchimmcodon","followers_url":"https://api.github.com/users/canhchimmcodon/followers","following_url":"https://api.github.com/users/canhchimmcodon/following{/other_user}","gists_url":"https://api.github.com/users/canhchimmcodon/gists{/gist_id}","starred_url":"https://api.github.com/users/canhchimmcodon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canhchimmcodon/subscriptions","organizations_url":"https://api.github.com/users/canhchimmcodon/orgs","repos_url":"https://api.github.com/users/canhchimmcodon/repos","events_url":"https://api.github.com/users/canhchimmcodon/events{/privacy}","received_events_url":"https://api.github.com/users/canhchimmcodon/received_events","type":"User","site_admin":false},"repo":{"id":141975261,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE5NzUyNjE=","name":"manager_library","full_name":"canhchimmcodon/manager_library","owner":{"login":"canhchimmcodon","id":40779936,"node_id":"MDQ6VXNlcjQwNzc5OTM2","avatar_url":"https://avatars1.githubusercontent.com/u/40779936?v=4","gravatar_id":"","url":"https://api.github.com/users/canhchimmcodon","html_url":"https://github.com/canhchimmcodon","followers_url":"https://api.github.com/users/canhchimmcodon/followers","following_url":"https://api.github.com/users/canhchimmcodon/following{/other_user}","gists_url":"https://api.github.com/users/canhchimmcodon/gists{/gist_id}","starred_url":"https://api.github.com/users/canhchimmcodon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canhchimmcodon/subscriptions","organizations_url":"https://api.github.com/users/canhchimmcodon/orgs","repos_url":"https://api.github.com/users/canhchimmcodon/repos","events_url":"https://api.github.com/users/canhchimmcodon/events{/privacy}","received_events_url":"https://api.github.com/users/canhchimmcodon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/canhchimmcodon/manager_library","description":null,"fork":true,"url":"https://api.github.com/repos/canhchimmcodon/manager_library","forks_url":"https://api.github.com/repos/canhchimmcodon/manager_library/forks","keys_url":"https://api.github.com/repos/canhchimmcodon/manager_library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/canhchimmcodon/manager_library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/canhchimmcodon/manager_library/teams","hooks_url":"https://api.github.com/repos/canhchimmcodon/manager_library/hooks","issue_events_url":"https://api.github.com/repos/canhchimmcodon/manager_library/issues/events{/number}","events_url":"https://api.github.com/repos/canhchimmcodon/manager_library/events","assignees_url":"https://api.github.com/repos/canhchimmcodon/manager_library/assignees{/user}","branches_url":"https://api.github.com/repos/canhchimmcodon/manager_library/branches{/branch}","tags_url":"https://api.github.com/repos/canhchimmcodon/manager_library/tags","blobs_url":"https://api.github.com/repos/canhchimmcodon/manager_library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/canhchimmcodon/manager_library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/canhchimmcodon/manager_library/git/refs{/sha}","trees_url":"https://api.github.com/repos/canhchimmcodon/manager_library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/canhchimmcodon/manager_library/statuses/{sha}","languages_url":"https://api.github.com/repos/canhchimmcodon/manager_library/languages","stargazers_url":"https://api.github.com/repos/canhchimmcodon/manager_library/stargazers","contributors_url":"https://api.github.com/repos/canhchimmcodon/manager_library/contributors","subscribers_url":"https://api.github.com/repos/canhchimmcodon/manager_library/subscribers","subscription_url":"https://api.github.com/repos/canhchimmcodon/manager_library/subscription","commits_url":"https://api.github.com/repos/canhchimmcodon/manager_library/commits{/sha}","git_commits_url":"https://api.github.com/repos/canhchimmcodon/manager_library/git/commits{/sha}","comments_url":"https://api.github.com/repos/canhchimmcodon/manager_library/comments{/number}","issue_comment_url":"https://api.github.com/repos/canhchimmcodon/manager_library/issues/comments{/number}","contents_url":"https://api.github.com/repos/canhchimmcodon/manager_library/contents/{+path}","compare_url":"https://api.github.com/repos/canhchimmcodon/manager_library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/canhchimmcodon/manager_library/merges","archive_url":"https://api.github.com/repos/canhchimmcodon/manager_library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/canhchimmcodon/manager_library/downloads","issues_url":"https://api.github.com/repos/canhchimmcodon/manager_library/issues{/number}","pulls_url":"https://api.github.com/repos/canhchimmcodon/manager_library/pulls{/number}","milestones_url":"https://api.github.com/repos/canhchimmcodon/manager_library/milestones{/number}","notifications_url":"https://api.github.com/repos/canhchimmcodon/manager_library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/canhchimmcodon/manager_library/labels{/name}","releases_url":"https://api.github.com/repos/canhchimmcodon/manager_library/releases{/id}","deployments_url":"https://api.github.com/repos/canhchimmcodon/manager_library/deployments","created_at":"2018-07-23T07:06:38Z","updated_at":"2018-07-23T07:06:39Z","pushed_at":"2018-07-30T08:37:59Z","git_url":"git://github.com/canhchimmcodon/manager_library.git","ssh_url":"git@github.com:canhchimmcodon/manager_library.git","clone_url":"https://github.com/canhchimmcodon/manager_library.git","svn_url":"https://github.com/canhchimmcodon/manager_library","homepage":null,"size":101,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:master","ref":"master","sha":"2e1a81c419942ecc4d24c16a27be6f720dd84eaa","user":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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":141955681,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE5NTU2ODE=","name":"manager_library","full_name":"framgia/manager_library","owner":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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/manager_library","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/manager_library","forks_url":"https://api.github.com/repos/framgia/manager_library/forks","keys_url":"https://api.github.com/repos/framgia/manager_library/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/manager_library/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/manager_library/teams","hooks_url":"https://api.github.com/repos/framgia/manager_library/hooks","issue_events_url":"https://api.github.com/repos/framgia/manager_library/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/manager_library/events","assignees_url":"https://api.github.com/repos/framgia/manager_library/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/manager_library/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/manager_library/tags","blobs_url":"https://api.github.com/repos/framgia/manager_library/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/manager_library/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/manager_library/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/manager_library/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/manager_library/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/manager_library/languages","stargazers_url":"https://api.github.com/repos/framgia/manager_library/stargazers","contributors_url":"https://api.github.com/repos/framgia/manager_library/contributors","subscribers_url":"https://api.github.com/repos/framgia/manager_library/subscribers","subscription_url":"https://api.github.com/repos/framgia/manager_library/subscription","commits_url":"https://api.github.com/repos/framgia/manager_library/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/manager_library/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/manager_library/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/manager_library/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/manager_library/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/manager_library/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/manager_library/merges","archive_url":"https://api.github.com/repos/framgia/manager_library/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/manager_library/downloads","issues_url":"https://api.github.com/repos/framgia/manager_library/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/manager_library/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/manager_library/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/manager_library/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/manager_library/labels{/name}","releases_url":"https://api.github.com/repos/framgia/manager_library/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/manager_library/deployments","created_at":"2018-07-23T03:20:09Z","updated_at":"2018-07-30T07:57:30Z","pushed_at":"2018-07-30T08:38:23Z","git_url":"git://github.com/framgia/manager_library.git","ssh_url":"git@github.com:framgia/manager_library.git","clone_url":"https://github.com/framgia/manager_library.git","svn_url":"https://github.com/framgia/manager_library","homepage":null,"size":102,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/manager_library/pulls/17"},"html":{"href":"https://github.com/framgia/manager_library/pull/17"},"issue":{"href":"https://api.github.com/repos/framgia/manager_library/issues/17"},"comments":{"href":"https://api.github.com/repos/framgia/manager_library/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/manager_library/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/manager_library/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/manager_library/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/manager_library/statuses/53dc7cea6247a033953a4da3bd65db969525daef"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"anhnt796"}}