{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/club_management_01/pulls/comments/95925162","pull_request_review_id":16496729,"id":95925162,"diff_hunk":"@@ -0,0 +1,72 @@\n+class CommentsController < ApplicationController\n+  # before_action :load_news, only: [:create, :update]\n+  # before_action :load_comment, 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 = Comment.new comment_params\n+    unless comment.save\n+      flash_error comment\n+      redirect_to :back\n+    end\n+    @target = comment.target\n+    respond_to do |format|\n+      format.js\n+    end\n+  end\n+\n+  # def edit\n+  #   respond_to do |format|\n+  #     format.js\n+  #   end\n+  # end\n+\n+  # def update\n+  #   @comments = @news.comments\n+  #   unless @comment.update_attributes comment_params\n+  #     flash_error comment\n+  #   end\n+  #   respond_to do |format|\n+  #     format.js\n+  #   end\n+  # end\n+\n+  # def destroy\n+  #   @news = @comment.news\n+  #   @comments = @news.comments\n+  #   unless @comment.destroy\n+  #     flash_error comment\n+  #   end\n+  #   respond_to do |format|","path":"app/controllers/comments_controller.rb","position":46,"original_position":46,"commit_id":"ab7ab998592aa99bc1e530374067fbfb0b7a4a99","original_commit_id":"ab7ab998592aa99bc1e530374067fbfb0b7a4a99","user":{"login":"nvtanh","id":5591946,"avatar_url":"https://avatars.githubusercontent.com/u/5591946?v=3","gravatar_id":"","url":"https://api.github.com/users/nvtanh","html_url":"https://github.com/nvtanh","followers_url":"https://api.github.com/users/nvtanh/followers","following_url":"https://api.github.com/users/nvtanh/following{/other_user}","gists_url":"https://api.github.com/users/nvtanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nvtanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvtanh/subscriptions","organizations_url":"https://api.github.com/users/nvtanh/orgs","repos_url":"https://api.github.com/users/nvtanh/repos","events_url":"https://api.github.com/users/nvtanh/events{/privacy}","received_events_url":"https://api.github.com/users/nvtanh/received_events","type":"User","site_admin":false},"body":"cmt lại ntn là sao ?","created_at":"2017-01-13T01:54:59Z","updated_at":"2017-01-13T01:56:52Z","html_url":"https://github.com/framgia/club_management_01/pull/39#discussion_r95925162","pull_request_url":"https://api.github.com/repos/framgia/club_management_01/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/framgia/club_management_01/pulls/comments/95925162"},"html":{"href":"https://github.com/framgia/club_management_01/pull/39#discussion_r95925162"},"pull_request":{"href":"https://api.github.com/repos/framgia/club_management_01/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/club_management_01/pulls/39","id":101374164,"html_url":"https://github.com/framgia/club_management_01/pull/39","diff_url":"https://github.com/framgia/club_management_01/pull/39.diff","patch_url":"https://github.com/framgia/club_management_01/pull/39.patch","issue_url":"https://api.github.com/repos/framgia/club_management_01/issues/39","number":39,"state":"open","locked":false,"title":"done comment","user":{"login":"kewdev","id":23021580,"avatar_url":"https://avatars.githubusercontent.com/u/23021580?v=3","gravatar_id":"","url":"https://api.github.com/users/kewdev","html_url":"https://github.com/kewdev","followers_url":"https://api.github.com/users/kewdev/followers","following_url":"https://api.github.com/users/kewdev/following{/other_user}","gists_url":"https://api.github.com/users/kewdev/gists{/gist_id}","starred_url":"https://api.github.com/users/kewdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kewdev/subscriptions","organizations_url":"https://api.github.com/users/kewdev/orgs","repos_url":"https://api.github.com/users/kewdev/repos","events_url":"https://api.github.com/users/kewdev/events{/privacy}","received_events_url":"https://api.github.com/users/kewdev/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-13T01:28:14Z","updated_at":"2017-01-13T01:56:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fafbfe2361ec209c8206f05d0900ae506d5c1a3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/club_management_01/pulls/39/commits","review_comments_url":"https://api.github.com/repos/framgia/club_management_01/pulls/39/comments","review_comment_url":"https://api.github.com/repos/framgia/club_management_01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/club_management_01/issues/39/comments","statuses_url":"https://api.github.com/repos/framgia/club_management_01/statuses/ab7ab998592aa99bc1e530374067fbfb0b7a4a99","head":{"label":"kewdev:comment","ref":"comment","sha":"ab7ab998592aa99bc1e530374067fbfb0b7a4a99","user":{"login":"kewdev","id":23021580,"avatar_url":"https://avatars.githubusercontent.com/u/23021580?v=3","gravatar_id":"","url":"https://api.github.com/users/kewdev","html_url":"https://github.com/kewdev","followers_url":"https://api.github.com/users/kewdev/followers","following_url":"https://api.github.com/users/kewdev/following{/other_user}","gists_url":"https://api.github.com/users/kewdev/gists{/gist_id}","starred_url":"https://api.github.com/users/kewdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kewdev/subscriptions","organizations_url":"https://api.github.com/users/kewdev/orgs","repos_url":"https://api.github.com/users/kewdev/repos","events_url":"https://api.github.com/users/kewdev/events{/privacy}","received_events_url":"https://api.github.com/users/kewdev/received_events","type":"User","site_admin":false},"repo":{"id":76230577,"name":"club_management_01","full_name":"kewdev/club_management_01","owner":{"login":"kewdev","id":23021580,"avatar_url":"https://avatars.githubusercontent.com/u/23021580?v=3","gravatar_id":"","url":"https://api.github.com/users/kewdev","html_url":"https://github.com/kewdev","followers_url":"https://api.github.com/users/kewdev/followers","following_url":"https://api.github.com/users/kewdev/following{/other_user}","gists_url":"https://api.github.com/users/kewdev/gists{/gist_id}","starred_url":"https://api.github.com/users/kewdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kewdev/subscriptions","organizations_url":"https://api.github.com/users/kewdev/orgs","repos_url":"https://api.github.com/users/kewdev/repos","events_url":"https://api.github.com/users/kewdev/events{/privacy}","received_events_url":"https://api.github.com/users/kewdev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kewdev/club_management_01","description":null,"fork":true,"url":"https://api.github.com/repos/kewdev/club_management_01","forks_url":"https://api.github.com/repos/kewdev/club_management_01/forks","keys_url":"https://api.github.com/repos/kewdev/club_management_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kewdev/club_management_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kewdev/club_management_01/teams","hooks_url":"https://api.github.com/repos/kewdev/club_management_01/hooks","issue_events_url":"https://api.github.com/repos/kewdev/club_management_01/issues/events{/number}","events_url":"https://api.github.com/repos/kewdev/club_management_01/events","assignees_url":"https://api.github.com/repos/kewdev/club_management_01/assignees{/user}","branches_url":"https://api.github.com/repos/kewdev/club_management_01/branches{/branch}","tags_url":"https://api.github.com/repos/kewdev/club_management_01/tags","blobs_url":"https://api.github.com/repos/kewdev/club_management_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kewdev/club_management_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kewdev/club_management_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/kewdev/club_management_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kewdev/club_management_01/statuses/{sha}","languages_url":"https://api.github.com/repos/kewdev/club_management_01/languages","stargazers_url":"https://api.github.com/repos/kewdev/club_management_01/stargazers","contributors_url":"https://api.github.com/repos/kewdev/club_management_01/contributors","subscribers_url":"https://api.github.com/repos/kewdev/club_management_01/subscribers","subscription_url":"https://api.github.com/repos/kewdev/club_management_01/subscription","commits_url":"https://api.github.com/repos/kewdev/club_management_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/kewdev/club_management_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/kewdev/club_management_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/kewdev/club_management_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/kewdev/club_management_01/contents/{+path}","compare_url":"https://api.github.com/repos/kewdev/club_management_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kewdev/club_management_01/merges","archive_url":"https://api.github.com/repos/kewdev/club_management_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kewdev/club_management_01/downloads","issues_url":"https://api.github.com/repos/kewdev/club_management_01/issues{/number}","pulls_url":"https://api.github.com/repos/kewdev/club_management_01/pulls{/number}","milestones_url":"https://api.github.com/repos/kewdev/club_management_01/milestones{/number}","notifications_url":"https://api.github.com/repos/kewdev/club_management_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kewdev/club_management_01/labels{/name}","releases_url":"https://api.github.com/repos/kewdev/club_management_01/releases{/id}","deployments_url":"https://api.github.com/repos/kewdev/club_management_01/deployments","created_at":"2016-12-12T07:01:40Z","updated_at":"2016-12-12T06:56:07Z","pushed_at":"2017-01-13T01:32:41Z","git_url":"git://github.com/kewdev/club_management_01.git","ssh_url":"git@github.com:kewdev/club_management_01.git","clone_url":"https://github.com/kewdev/club_management_01.git","svn_url":"https://github.com/kewdev/club_management_01","homepage":null,"size":5725,"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":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"093cc28b4bbc05e2232d85c88c62cb1f24dae901","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":76230190,"name":"club_management_01","full_name":"framgia/club_management_01","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/club_management_01","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/club_management_01","forks_url":"https://api.github.com/repos/framgia/club_management_01/forks","keys_url":"https://api.github.com/repos/framgia/club_management_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/club_management_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/club_management_01/teams","hooks_url":"https://api.github.com/repos/framgia/club_management_01/hooks","issue_events_url":"https://api.github.com/repos/framgia/club_management_01/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/club_management_01/events","assignees_url":"https://api.github.com/repos/framgia/club_management_01/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/club_management_01/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/club_management_01/tags","blobs_url":"https://api.github.com/repos/framgia/club_management_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/club_management_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/club_management_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/club_management_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/club_management_01/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/club_management_01/languages","stargazers_url":"https://api.github.com/repos/framgia/club_management_01/stargazers","contributors_url":"https://api.github.com/repos/framgia/club_management_01/contributors","subscribers_url":"https://api.github.com/repos/framgia/club_management_01/subscribers","subscription_url":"https://api.github.com/repos/framgia/club_management_01/subscription","commits_url":"https://api.github.com/repos/framgia/club_management_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/club_management_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/club_management_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/club_management_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/club_management_01/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/club_management_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/club_management_01/merges","archive_url":"https://api.github.com/repos/framgia/club_management_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/club_management_01/downloads","issues_url":"https://api.github.com/repos/framgia/club_management_01/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/club_management_01/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/club_management_01/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/club_management_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/club_management_01/labels{/name}","releases_url":"https://api.github.com/repos/framgia/club_management_01/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/club_management_01/deployments","created_at":"2016-12-12T06:56:07Z","updated_at":"2017-01-04T06:28:26Z","pushed_at":"2017-01-13T01:32:42Z","git_url":"git://github.com/framgia/club_management_01.git","ssh_url":"git@github.com:framgia/club_management_01.git","clone_url":"https://github.com/framgia/club_management_01.git","svn_url":"https://github.com/framgia/club_management_01","homepage":null,"size":5693,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/club_management_01/pulls/39"},"html":{"href":"https://github.com/framgia/club_management_01/pull/39"},"issue":{"href":"https://api.github.com/repos/framgia/club_management_01/issues/39"},"comments":{"href":"https://api.github.com/repos/framgia/club_management_01/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/club_management_01/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/club_management_01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/club_management_01/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/club_management_01/statuses/ab7ab998592aa99bc1e530374067fbfb0b7a4a99"}}}}
{"actor":{"display_login":"nvtanh"}}