GitHub PullRequestReviewCommentEvent at 2014-12-03 04:32:02
Repository: fels_19
Actor: chuanhtuan
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_19/pulls/comments/21212156","id":21212156,"diff_hunk":"@@ -1,7 +1,12 @@\n class CategoriesController < ApplicationController\n-  before_action :logged_in_user, only:[:index]\n+  before_action :logged_in_user, only:[:index,:show]\n \n   def index  \n     @categories = Category.paginate page: params[:page], per_page: 5           \n   end\n+\n+  def show\n+  \t@category=Category.find params[:id]\n+  \t@comments = @category.comments.comments_order.paginate page: params[:page], per_page: 5           ","path":"app/controllers/categories_controller.rb","position":11,"original_position":11,"commit_id":"10295d1de8b47b74dbd7a88716f5b10974a2dbc5","original_commit_id":"10295d1de8b47b74dbd7a88716f5b10974a2dbc5","user":{"login":"chuanhtuan","id":5590771,"avatar_url":"https://avatars.githubusercontent.com/u/5590771?v=3","gravatar_id":"","url":"https://api.github.com/users/chuanhtuan","html_url":"https://github.com/chuanhtuan","followers_url":"https://api.github.com/users/chuanhtuan/followers","following_url":"https://api.github.com/users/chuanhtuan/following{/other_user}","gists_url":"https://api.github.com/users/chuanhtuan/gists{/gist_id}","starred_url":"https://api.github.com/users/chuanhtuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuanhtuan/subscriptions","organizations_url":"https://api.github.com/users/chuanhtuan/orgs","repos_url":"https://api.github.com/users/chuanhtuan/repos","events_url":"https://api.github.com/users/chuanhtuan/events{/privacy}","received_events_url":"https://api.github.com/users/chuanhtuan/received_events","type":"User","site_admin":false},"body":"ordered_by_...","created_at":"2014-12-03T04:32:02Z","updated_at":"2014-12-03T04:32:02Z","html_url":"https://github.com/framgia/fels_19/pull/20#discussion_r21212156","pull_request_url":"https://api.github.com/repos/framgia/fels_19/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_19/pulls/comments/21212156"},"html":{"href":"https://github.com/framgia/fels_19/pull/20#discussion_r21212156"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_19/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_19/pulls/20","id":25394944,"html_url":"https://github.com/framgia/fels_19/pull/20","diff_url":"https://github.com/framgia/fels_19/pull/20.diff","patch_url":"https://github.com/framgia/fels_19/pull/20.patch","issue_url":"https://api.github.com/repos/framgia/fels_19/issues/20","number":20,"state":"open","locked":false,"title":"Add user comment on lesson and Design Web GUI","user":{"login":"sreangrathanak","id":6789425,"avatar_url":"https://avatars.githubusercontent.com/u/6789425?v=3","gravatar_id":"","url":"https://api.github.com/users/sreangrathanak","html_url":"https://github.com/sreangrathanak","followers_url":"https://api.github.com/users/sreangrathanak/followers","following_url":"https://api.github.com/users/sreangrathanak/following{/other_user}","gists_url":"https://api.github.com/users/sreangrathanak/gists{/gist_id}","starred_url":"https://api.github.com/users/sreangrathanak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreangrathanak/subscriptions","organizations_url":"https://api.github.com/users/sreangrathanak/orgs","repos_url":"https://api.github.com/users/sreangrathanak/repos","events_url":"https://api.github.com/users/sreangrathanak/events{/privacy}","received_events_url":"https://api.github.com/users/sreangrathanak/received_events","type":"User","site_admin":false},"body":"I think this is my final pull request of my project. But if you want me to do more on it, please comment.\r\nThank.","created_at":"2014-12-03T04:07:54Z","updated_at":"2014-12-03T04:32:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afa2d32cecf753e1eb96eb040e0100c0317a4fff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_19/pulls/20/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_19/pulls/20/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_19/pulls/comments/{number}","comments_url":"https://api.github.com/repos/framgia/fels_19/issues/20/comments","statuses_url":"https://api.github.com/repos/framgia/fels_19/statuses/10295d1de8b47b74dbd7a88716f5b10974a2dbc5","head":{"label":"sreangrathanak:final-web-gui-design","ref":"final-web-gui-design","sha":"10295d1de8b47b74dbd7a88716f5b10974a2dbc5","user":{"login":"sreangrathanak","id":6789425,"avatar_url":"https://avatars.githubusercontent.com/u/6789425?v=3","gravatar_id":"","url":"https://api.github.com/users/sreangrathanak","html_url":"https://github.com/sreangrathanak","followers_url":"https://api.github.com/users/sreangrathanak/followers","following_url":"https://api.github.com/users/sreangrathanak/following{/other_user}","gists_url":"https://api.github.com/users/sreangrathanak/gists{/gist_id}","starred_url":"https://api.github.com/users/sreangrathanak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreangrathanak/subscriptions","organizations_url":"https://api.github.com/users/sreangrathanak/orgs","repos_url":"https://api.github.com/users/sreangrathanak/repos","events_url":"https://api.github.com/users/sreangrathanak/events{/privacy}","received_events_url":"https://api.github.com/users/sreangrathanak/received_events","type":"User","site_admin":false},"repo":{"id":26221956,"name":"fels_19","full_name":"sreangrathanak/fels_19","owner":{"login":"sreangrathanak","id":6789425,"avatar_url":"https://avatars.githubusercontent.com/u/6789425?v=3","gravatar_id":"","url":"https://api.github.com/users/sreangrathanak","html_url":"https://github.com/sreangrathanak","followers_url":"https://api.github.com/users/sreangrathanak/followers","following_url":"https://api.github.com/users/sreangrathanak/following{/other_user}","gists_url":"https://api.github.com/users/sreangrathanak/gists{/gist_id}","starred_url":"https://api.github.com/users/sreangrathanak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreangrathanak/subscriptions","organizations_url":"https://api.github.com/users/sreangrathanak/orgs","repos_url":"https://api.github.com/users/sreangrathanak/repos","events_url":"https://api.github.com/users/sreangrathanak/events{/privacy}","received_events_url":"https://api.github.com/users/sreangrathanak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sreangrathanak/fels_19","description":"Framgia E-Learning System","fork":true,"url":"https://api.github.com/repos/sreangrathanak/fels_19","forks_url":"https://api.github.com/repos/sreangrathanak/fels_19/forks","keys_url":"https://api.github.com/repos/sreangrathanak/fels_19/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sreangrathanak/fels_19/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sreangrathanak/fels_19/teams","hooks_url":"https://api.github.com/repos/sreangrathanak/fels_19/hooks","issue_events_url":"https://api.github.com/repos/sreangrathanak/fels_19/issues/events{/number}","events_url":"https://api.github.com/repos/sreangrathanak/fels_19/events","assignees_url":"https://api.github.com/repos/sreangrathanak/fels_19/assignees{/user}","branches_url":"https://api.github.com/repos/sreangrathanak/fels_19/branches{/branch}","tags_url":"https://api.github.com/repos/sreangrathanak/fels_19/tags","blobs_url":"https://api.github.com/repos/sreangrathanak/fels_19/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sreangrathanak/fels_19/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sreangrathanak/fels_19/git/refs{/sha}","trees_url":"https://api.github.com/repos/sreangrathanak/fels_19/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sreangrathanak/fels_19/statuses/{sha}","languages_url":"https://api.github.com/repos/sreangrathanak/fels_19/languages","stargazers_url":"https://api.github.com/repos/sreangrathanak/fels_19/stargazers","contributors_url":"https://api.github.com/repos/sreangrathanak/fels_19/contributors","subscribers_url":"https://api.github.com/repos/sreangrathanak/fels_19/subscribers","subscription_url":"https://api.github.com/repos/sreangrathanak/fels_19/subscription","commits_url":"https://api.github.com/repos/sreangrathanak/fels_19/commits{/sha}","git_commits_url":"https://api.github.com/repos/sreangrathanak/fels_19/git/commits{/sha}","comments_url":"https://api.github.com/repos/sreangrathanak/fels_19/comments{/number}","issue_comment_url":"https://api.github.com/repos/sreangrathanak/fels_19/issues/comments/{number}","contents_url":"https://api.github.com/repos/sreangrathanak/fels_19/contents/{+path}","compare_url":"https://api.github.com/repos/sreangrathanak/fels_19/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sreangrathanak/fels_19/merges","archive_url":"https://api.github.com/repos/sreangrathanak/fels_19/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sreangrathanak/fels_19/downloads","issues_url":"https://api.github.com/repos/sreangrathanak/fels_19/issues{/number}","pulls_url":"https://api.github.com/repos/sreangrathanak/fels_19/pulls{/number}","milestones_url":"https://api.github.com/repos/sreangrathanak/fels_19/milestones{/number}","notifications_url":"https://api.github.com/repos/sreangrathanak/fels_19/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sreangrathanak/fels_19/labels{/name}","releases_url":"https://api.github.com/repos/sreangrathanak/fels_19/releases{/id}","created_at":"2014-11-05T14:00:28Z","updated_at":"2014-11-04T02:13:41Z","pushed_at":"2014-12-03T04:04:50Z","git_url":"git://github.com/sreangrathanak/fels_19.git","ssh_url":"git@github.com:sreangrathanak/fels_19.git","clone_url":"https://github.com/sreangrathanak/fels_19.git","svn_url":"https://github.com/sreangrathanak/fels_19","homepage":null,"size":388,"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":"acfa335de0a2314998b69bf45266b61efcfcb1ab","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":26148739,"name":"fels_19","full_name":"framgia/fels_19","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/fels_19","description":"Framgia E-Learning System","fork":false,"url":"https://api.github.com/repos/framgia/fels_19","forks_url":"https://api.github.com/repos/framgia/fels_19/forks","keys_url":"https://api.github.com/repos/framgia/fels_19/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_19/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_19/teams","hooks_url":"https://api.github.com/repos/framgia/fels_19/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_19/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_19/events","assignees_url":"https://api.github.com/repos/framgia/fels_19/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_19/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_19/tags","blobs_url":"https://api.github.com/repos/framgia/fels_19/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_19/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_19/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_19/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_19/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_19/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_19/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_19/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_19/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_19/subscription","commits_url":"https://api.github.com/repos/framgia/fels_19/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_19/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_19/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_19/issues/comments/{number}","contents_url":"https://api.github.com/repos/framgia/fels_19/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_19/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_19/merges","archive_url":"https://api.github.com/repos/framgia/fels_19/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_19/downloads","issues_url":"https://api.github.com/repos/framgia/fels_19/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_19/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_19/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_19/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_19/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_19/releases{/id}","created_at":"2014-11-04T02:13:41Z","updated_at":"2014-11-04T02:13:41Z","pushed_at":"2014-12-01T05:09:32Z","git_url":"git://github.com/framgia/fels_19.git","ssh_url":"git@github.com:framgia/fels_19.git","clone_url":"https://github.com/framgia/fels_19.git","svn_url":"https://github.com/framgia/fels_19","homepage":null,"size":462,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_19/pulls/20"},"html":{"href":"https://github.com/framgia/fels_19/pull/20"},"issue":{"href":"https://api.github.com/repos/framgia/fels_19/issues/20"},"comments":{"href":"https://api.github.com/repos/framgia/fels_19/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_19/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_19/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_19/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_19/statuses/10295d1de8b47b74dbd7a88716f5b10974a2dbc5"}}}}