{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_27/pulls/comments/70745455","id":70745455,"diff_hunk":"@@ -0,0 +1,26 @@\n+class RequestsController < ApplicationController\n+  before_action :logged_in_user, only: [:create, :destroy]\n+\n+  def create\n+    @request= current_user.requests.build(request_params)\n+    if @request.save\n+      flash[:success] = \"Request created\"","path":"app/controllers/requests_controller.rb","position":7,"original_position":7,"commit_id":"926ecaf7a5c2d21b5f05c185043e6dfd969f95a0","original_commit_id":"926ecaf7a5c2d21b5f05c185043e6dfd969f95a0","user":{"login":"phannh58","id":10679574,"avatar_url":"https://avatars.githubusercontent.com/u/10679574?v=3","gravatar_id":"","url":"https://api.github.com/users/phannh58","html_url":"https://github.com/phannh58","followers_url":"https://api.github.com/users/phannh58/followers","following_url":"https://api.github.com/users/phannh58/following{/other_user}","gists_url":"https://api.github.com/users/phannh58/gists{/gist_id}","starred_url":"https://api.github.com/users/phannh58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phannh58/subscriptions","organizations_url":"https://api.github.com/users/phannh58/orgs","repos_url":"https://api.github.com/users/phannh58/repos","events_url":"https://api.github.com/users/phannh58/events{/privacy}","received_events_url":"https://api.github.com/users/phannh58/received_events","type":"User","site_admin":false},"body":"i18n","created_at":"2016-07-14T03:58:12Z","updated_at":"2016-07-14T03:58:12Z","html_url":"https://github.com/framgia/brs_27/pull/19#discussion_r70745455","pull_request_url":"https://api.github.com/repos/framgia/brs_27/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/comments/70745455"},"html":{"href":"https://github.com/framgia/brs_27/pull/19#discussion_r70745455"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_27/pulls/19","id":77395039,"html_url":"https://github.com/framgia/brs_27/pull/19","diff_url":"https://github.com/framgia/brs_27/pull/19.diff","patch_url":"https://github.com/framgia/brs_27/pull/19.patch","issue_url":"https://api.github.com/repos/framgia/brs_27/issues/19","number":19,"state":"open","locked":false,"title":"add request","user":{"login":"levanhuan","id":86580,"avatar_url":"https://avatars.githubusercontent.com/u/86580?v=3","gravatar_id":"","url":"https://api.github.com/users/levanhuan","html_url":"https://github.com/levanhuan","followers_url":"https://api.github.com/users/levanhuan/followers","following_url":"https://api.github.com/users/levanhuan/following{/other_user}","gists_url":"https://api.github.com/users/levanhuan/gists{/gist_id}","starred_url":"https://api.github.com/users/levanhuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levanhuan/subscriptions","organizations_url":"https://api.github.com/users/levanhuan/orgs","repos_url":"https://api.github.com/users/levanhuan/repos","events_url":"https://api.github.com/users/levanhuan/events{/privacy}","received_events_url":"https://api.github.com/users/levanhuan/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-14T03:30:26Z","updated_at":"2016-07-14T03:58:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3506eeb3de83688fcda5688de8c092a436c4ee46","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_27/pulls/19/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_27/pulls/19/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_27/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_27/issues/19/comments","statuses_url":"https://api.github.com/repos/framgia/brs_27/statuses/926ecaf7a5c2d21b5f05c185043e6dfd969f95a0","head":{"label":"levanhuan:add_request","ref":"add_request","sha":"926ecaf7a5c2d21b5f05c185043e6dfd969f95a0","user":{"login":"levanhuan","id":86580,"avatar_url":"https://avatars.githubusercontent.com/u/86580?v=3","gravatar_id":"","url":"https://api.github.com/users/levanhuan","html_url":"https://github.com/levanhuan","followers_url":"https://api.github.com/users/levanhuan/followers","following_url":"https://api.github.com/users/levanhuan/following{/other_user}","gists_url":"https://api.github.com/users/levanhuan/gists{/gist_id}","starred_url":"https://api.github.com/users/levanhuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levanhuan/subscriptions","organizations_url":"https://api.github.com/users/levanhuan/orgs","repos_url":"https://api.github.com/users/levanhuan/repos","events_url":"https://api.github.com/users/levanhuan/events{/privacy}","received_events_url":"https://api.github.com/users/levanhuan/received_events","type":"User","site_admin":false},"repo":{"id":62684903,"name":"brs_27","full_name":"levanhuan/brs_27","owner":{"login":"levanhuan","id":86580,"avatar_url":"https://avatars.githubusercontent.com/u/86580?v=3","gravatar_id":"","url":"https://api.github.com/users/levanhuan","html_url":"https://github.com/levanhuan","followers_url":"https://api.github.com/users/levanhuan/followers","following_url":"https://api.github.com/users/levanhuan/following{/other_user}","gists_url":"https://api.github.com/users/levanhuan/gists{/gist_id}","starred_url":"https://api.github.com/users/levanhuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levanhuan/subscriptions","organizations_url":"https://api.github.com/users/levanhuan/orgs","repos_url":"https://api.github.com/users/levanhuan/repos","events_url":"https://api.github.com/users/levanhuan/events{/privacy}","received_events_url":"https://api.github.com/users/levanhuan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/levanhuan/brs_27","description":"Framgia Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/levanhuan/brs_27","forks_url":"https://api.github.com/repos/levanhuan/brs_27/forks","keys_url":"https://api.github.com/repos/levanhuan/brs_27/keys{/key_id}","collaborators_url":"https://api.github.com/repos/levanhuan/brs_27/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/levanhuan/brs_27/teams","hooks_url":"https://api.github.com/repos/levanhuan/brs_27/hooks","issue_events_url":"https://api.github.com/repos/levanhuan/brs_27/issues/events{/number}","events_url":"https://api.github.com/repos/levanhuan/brs_27/events","assignees_url":"https://api.github.com/repos/levanhuan/brs_27/assignees{/user}","branches_url":"https://api.github.com/repos/levanhuan/brs_27/branches{/branch}","tags_url":"https://api.github.com/repos/levanhuan/brs_27/tags","blobs_url":"https://api.github.com/repos/levanhuan/brs_27/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/levanhuan/brs_27/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/levanhuan/brs_27/git/refs{/sha}","trees_url":"https://api.github.com/repos/levanhuan/brs_27/git/trees{/sha}","statuses_url":"https://api.github.com/repos/levanhuan/brs_27/statuses/{sha}","languages_url":"https://api.github.com/repos/levanhuan/brs_27/languages","stargazers_url":"https://api.github.com/repos/levanhuan/brs_27/stargazers","contributors_url":"https://api.github.com/repos/levanhuan/brs_27/contributors","subscribers_url":"https://api.github.com/repos/levanhuan/brs_27/subscribers","subscription_url":"https://api.github.com/repos/levanhuan/brs_27/subscription","commits_url":"https://api.github.com/repos/levanhuan/brs_27/commits{/sha}","git_commits_url":"https://api.github.com/repos/levanhuan/brs_27/git/commits{/sha}","comments_url":"https://api.github.com/repos/levanhuan/brs_27/comments{/number}","issue_comment_url":"https://api.github.com/repos/levanhuan/brs_27/issues/comments{/number}","contents_url":"https://api.github.com/repos/levanhuan/brs_27/contents/{+path}","compare_url":"https://api.github.com/repos/levanhuan/brs_27/compare/{base}...{head}","merges_url":"https://api.github.com/repos/levanhuan/brs_27/merges","archive_url":"https://api.github.com/repos/levanhuan/brs_27/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/levanhuan/brs_27/downloads","issues_url":"https://api.github.com/repos/levanhuan/brs_27/issues{/number}","pulls_url":"https://api.github.com/repos/levanhuan/brs_27/pulls{/number}","milestones_url":"https://api.github.com/repos/levanhuan/brs_27/milestones{/number}","notifications_url":"https://api.github.com/repos/levanhuan/brs_27/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/levanhuan/brs_27/labels{/name}","releases_url":"https://api.github.com/repos/levanhuan/brs_27/releases{/id}","deployments_url":"https://api.github.com/repos/levanhuan/brs_27/deployments","created_at":"2016-07-06T02:30:58Z","updated_at":"2016-07-05T01:28:01Z","pushed_at":"2016-07-14T03:55:29Z","git_url":"git://github.com/levanhuan/brs_27.git","ssh_url":"git@github.com:levanhuan/brs_27.git","clone_url":"https://github.com/levanhuan/brs_27.git","svn_url":"https://github.com/levanhuan/brs_27","homepage":null,"size":111,"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":"e41c4ddec2c1fc9f7eff7b9ed9b25b101bf69be1","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":62596840,"name":"brs_27","full_name":"framgia/brs_27","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_27","description":"Framgia Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_27","forks_url":"https://api.github.com/repos/framgia/brs_27/forks","keys_url":"https://api.github.com/repos/framgia/brs_27/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_27/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_27/teams","hooks_url":"https://api.github.com/repos/framgia/brs_27/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_27/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_27/events","assignees_url":"https://api.github.com/repos/framgia/brs_27/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_27/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_27/tags","blobs_url":"https://api.github.com/repos/framgia/brs_27/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_27/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_27/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_27/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_27/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_27/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_27/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_27/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_27/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_27/subscription","commits_url":"https://api.github.com/repos/framgia/brs_27/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_27/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_27/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_27/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_27/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_27/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_27/merges","archive_url":"https://api.github.com/repos/framgia/brs_27/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_27/downloads","issues_url":"https://api.github.com/repos/framgia/brs_27/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_27/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_27/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_27/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_27/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_27/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_27/deployments","created_at":"2016-07-05T01:28:01Z","updated_at":"2016-07-05T01:28:01Z","pushed_at":"2016-07-14T03:55:29Z","git_url":"git://github.com/framgia/brs_27.git","ssh_url":"git@github.com:framgia/brs_27.git","clone_url":"https://github.com/framgia/brs_27.git","svn_url":"https://github.com/framgia/brs_27","homepage":null,"size":122,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/19"},"html":{"href":"https://github.com/framgia/brs_27/pull/19"},"issue":{"href":"https://api.github.com/repos/framgia/brs_27/issues/19"},"comments":{"href":"https://api.github.com/repos/framgia/brs_27/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_27/statuses/926ecaf7a5c2d21b5f05c185043e6dfd969f95a0"}}}}
{"actor":{"display_login":"phannh58"}}