{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_17/pulls/comments/36613312","id":36613312,"diff_hunk":"@@ -11,9 +11,11 @@ def new\n \n   def create\n     @request = Request.new request_params\n+    @request.user = current_user\n+    @request.status = 0","path":"app/controllers/requests_controller.rb","position":14,"original_position":14,"commit_id":"ade9cc55cdbf8a50bdc0fe71fc4f0024dfe75427","original_commit_id":"ade9cc55cdbf8a50bdc0fe71fc4f0024dfe75427","user":{"login":"nhieu92","id":10509903,"avatar_url":"https://avatars.githubusercontent.com/u/10509903?v=3","gravatar_id":"","url":"https://api.github.com/users/nhieu92","html_url":"https://github.com/nhieu92","followers_url":"https://api.github.com/users/nhieu92/followers","following_url":"https://api.github.com/users/nhieu92/following{/other_user}","gists_url":"https://api.github.com/users/nhieu92/gists{/gist_id}","starred_url":"https://api.github.com/users/nhieu92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhieu92/subscriptions","organizations_url":"https://api.github.com/users/nhieu92/orgs","repos_url":"https://api.github.com/users/nhieu92/repos","events_url":"https://api.github.com/users/nhieu92/events{/privacy}","received_events_url":"https://api.github.com/users/nhieu92/received_events","type":"User","site_admin":false},"body":"Tớ nghĩ không nên đặt thẳng giá trị 0 vào đây mà vòng qua enum để lấy giá trị 0 về.","created_at":"2015-08-10T09:12:24Z","updated_at":"2015-08-10T09:12:24Z","html_url":"https://github.com/framgia/brs_17/pull/16#discussion_r36613312","pull_request_url":"https://api.github.com/repos/framgia/brs_17/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_17/pulls/comments/36613312"},"html":{"href":"https://github.com/framgia/brs_17/pull/16#discussion_r36613312"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_17/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_17/pulls/16","id":41999030,"html_url":"https://github.com/framgia/brs_17/pull/16","diff_url":"https://github.com/framgia/brs_17/pull/16.diff","patch_url":"https://github.com/framgia/brs_17/pull/16.patch","issue_url":"https://api.github.com/repos/framgia/brs_17/issues/16","number":16,"state":"open","locked":false,"title":"36682 - Admin manage request book","user":{"login":"vinhnd2010","id":4114847,"avatar_url":"https://avatars.githubusercontent.com/u/4114847?v=3","gravatar_id":"","url":"https://api.github.com/users/vinhnd2010","html_url":"https://github.com/vinhnd2010","followers_url":"https://api.github.com/users/vinhnd2010/followers","following_url":"https://api.github.com/users/vinhnd2010/following{/other_user}","gists_url":"https://api.github.com/users/vinhnd2010/gists{/gist_id}","starred_url":"https://api.github.com/users/vinhnd2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinhnd2010/subscriptions","organizations_url":"https://api.github.com/users/vinhnd2010/orgs","repos_url":"https://api.github.com/users/vinhnd2010/repos","events_url":"https://api.github.com/users/vinhnd2010/events{/privacy}","received_events_url":"https://api.github.com/users/vinhnd2010/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-10T08:55:55Z","updated_at":"2015-08-10T09:12:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bcc9d169657d55589ac49242ed594cb76e22774f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_17/pulls/16/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_17/pulls/16/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_17/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_17/issues/16/comments","statuses_url":"https://api.github.com/repos/framgia/brs_17/statuses/ade9cc55cdbf8a50bdc0fe71fc4f0024dfe75427","head":{"label":"vinhnd2010:admin-manage-request-book","ref":"admin-manage-request-book","sha":"ade9cc55cdbf8a50bdc0fe71fc4f0024dfe75427","user":{"login":"vinhnd2010","id":4114847,"avatar_url":"https://avatars.githubusercontent.com/u/4114847?v=3","gravatar_id":"","url":"https://api.github.com/users/vinhnd2010","html_url":"https://github.com/vinhnd2010","followers_url":"https://api.github.com/users/vinhnd2010/followers","following_url":"https://api.github.com/users/vinhnd2010/following{/other_user}","gists_url":"https://api.github.com/users/vinhnd2010/gists{/gist_id}","starred_url":"https://api.github.com/users/vinhnd2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinhnd2010/subscriptions","organizations_url":"https://api.github.com/users/vinhnd2010/orgs","repos_url":"https://api.github.com/users/vinhnd2010/repos","events_url":"https://api.github.com/users/vinhnd2010/events{/privacy}","received_events_url":"https://api.github.com/users/vinhnd2010/received_events","type":"User","site_admin":false},"repo":{"id":40176276,"name":"brs_17","full_name":"vinhnd2010/brs_17","owner":{"login":"vinhnd2010","id":4114847,"avatar_url":"https://avatars.githubusercontent.com/u/4114847?v=3","gravatar_id":"","url":"https://api.github.com/users/vinhnd2010","html_url":"https://github.com/vinhnd2010","followers_url":"https://api.github.com/users/vinhnd2010/followers","following_url":"https://api.github.com/users/vinhnd2010/following{/other_user}","gists_url":"https://api.github.com/users/vinhnd2010/gists{/gist_id}","starred_url":"https://api.github.com/users/vinhnd2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinhnd2010/subscriptions","organizations_url":"https://api.github.com/users/vinhnd2010/orgs","repos_url":"https://api.github.com/users/vinhnd2010/repos","events_url":"https://api.github.com/users/vinhnd2010/events{/privacy}","received_events_url":"https://api.github.com/users/vinhnd2010/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vinhnd2010/brs_17","description":"Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/vinhnd2010/brs_17","forks_url":"https://api.github.com/repos/vinhnd2010/brs_17/forks","keys_url":"https://api.github.com/repos/vinhnd2010/brs_17/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinhnd2010/brs_17/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinhnd2010/brs_17/teams","hooks_url":"https://api.github.com/repos/vinhnd2010/brs_17/hooks","issue_events_url":"https://api.github.com/repos/vinhnd2010/brs_17/issues/events{/number}","events_url":"https://api.github.com/repos/vinhnd2010/brs_17/events","assignees_url":"https://api.github.com/repos/vinhnd2010/brs_17/assignees{/user}","branches_url":"https://api.github.com/repos/vinhnd2010/brs_17/branches{/branch}","tags_url":"https://api.github.com/repos/vinhnd2010/brs_17/tags","blobs_url":"https://api.github.com/repos/vinhnd2010/brs_17/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinhnd2010/brs_17/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinhnd2010/brs_17/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinhnd2010/brs_17/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinhnd2010/brs_17/statuses/{sha}","languages_url":"https://api.github.com/repos/vinhnd2010/brs_17/languages","stargazers_url":"https://api.github.com/repos/vinhnd2010/brs_17/stargazers","contributors_url":"https://api.github.com/repos/vinhnd2010/brs_17/contributors","subscribers_url":"https://api.github.com/repos/vinhnd2010/brs_17/subscribers","subscription_url":"https://api.github.com/repos/vinhnd2010/brs_17/subscription","commits_url":"https://api.github.com/repos/vinhnd2010/brs_17/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinhnd2010/brs_17/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinhnd2010/brs_17/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinhnd2010/brs_17/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinhnd2010/brs_17/contents/{+path}","compare_url":"https://api.github.com/repos/vinhnd2010/brs_17/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinhnd2010/brs_17/merges","archive_url":"https://api.github.com/repos/vinhnd2010/brs_17/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinhnd2010/brs_17/downloads","issues_url":"https://api.github.com/repos/vinhnd2010/brs_17/issues{/number}","pulls_url":"https://api.github.com/repos/vinhnd2010/brs_17/pulls{/number}","milestones_url":"https://api.github.com/repos/vinhnd2010/brs_17/milestones{/number}","notifications_url":"https://api.github.com/repos/vinhnd2010/brs_17/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinhnd2010/brs_17/labels{/name}","releases_url":"https://api.github.com/repos/vinhnd2010/brs_17/releases{/id}","created_at":"2015-08-04T09:43:03Z","updated_at":"2015-08-04T09:32:27Z","pushed_at":"2015-08-10T09:05:06Z","git_url":"git://github.com/vinhnd2010/brs_17.git","ssh_url":"git@github.com:vinhnd2010/brs_17.git","clone_url":"https://github.com/vinhnd2010/brs_17.git","svn_url":"https://github.com/vinhnd2010/brs_17","homepage":null,"size":189,"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":"4b28648abd89e066780d6214605033eeec250547","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":40175745,"name":"brs_17","full_name":"framgia/brs_17","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_17","description":"Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_17","forks_url":"https://api.github.com/repos/framgia/brs_17/forks","keys_url":"https://api.github.com/repos/framgia/brs_17/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_17/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_17/teams","hooks_url":"https://api.github.com/repos/framgia/brs_17/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_17/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_17/events","assignees_url":"https://api.github.com/repos/framgia/brs_17/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_17/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_17/tags","blobs_url":"https://api.github.com/repos/framgia/brs_17/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_17/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_17/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_17/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_17/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_17/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_17/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_17/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_17/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_17/subscription","commits_url":"https://api.github.com/repos/framgia/brs_17/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_17/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_17/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_17/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_17/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_17/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_17/merges","archive_url":"https://api.github.com/repos/framgia/brs_17/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_17/downloads","issues_url":"https://api.github.com/repos/framgia/brs_17/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_17/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_17/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_17/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_17/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_17/releases{/id}","created_at":"2015-08-04T09:32:27Z","updated_at":"2015-08-04T09:32:27Z","pushed_at":"2015-08-10T09:05:06Z","git_url":"git://github.com/framgia/brs_17.git","ssh_url":"git@github.com:framgia/brs_17.git","clone_url":"https://github.com/framgia/brs_17.git","svn_url":"https://github.com/framgia/brs_17","homepage":null,"size":513,"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":3,"forks":4,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_17/pulls/16"},"html":{"href":"https://github.com/framgia/brs_17/pull/16"},"issue":{"href":"https://api.github.com/repos/framgia/brs_17/issues/16"},"comments":{"href":"https://api.github.com/repos/framgia/brs_17/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_17/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_17/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_17/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_17/statuses/ade9cc55cdbf8a50bdc0fe71fc4f0024dfe75427"}}}}