{"action":"created","comment":{"url":"https://api.github.com/repos/Uysim/troubleticket/pulls/comments/94209365","pull_request_review_id":14739912,"id":94209365,"diff_hunk":"@@ -25,7 +27,7 @@ def edit\n   # POST /clients.json\n   def create\n     @client = Client.new(client_params)\n-\n+    authorize @client","path":"app/controllers/clients_controller.rb","position":null,"original_position":26,"commit_id":"491eb7abcfd8b7861ea586dd5cf1aa3406f0055b","original_commit_id":"4105b347e6779de01e7867fa04aa48474b1c7090","user":{"login":"chileap","id":10094437,"avatar_url":"https://avatars.githubusercontent.com/u/10094437?v=3","gravatar_id":"","url":"https://api.github.com/users/chileap","html_url":"https://github.com/chileap","followers_url":"https://api.github.com/users/chileap/followers","following_url":"https://api.github.com/users/chileap/following{/other_user}","gists_url":"https://api.github.com/users/chileap/gists{/gist_id}","starred_url":"https://api.github.com/users/chileap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chileap/subscriptions","organizations_url":"https://api.github.com/users/chileap/orgs","repos_url":"https://api.github.com/users/chileap/repos","events_url":"https://api.github.com/users/chileap/events{/privacy}","received_events_url":"https://api.github.com/users/chileap/received_events","type":"User","site_admin":false},"body":"reduce function by using authorize_user","created_at":"2016-12-30T08:11:25Z","updated_at":"2016-12-30T08:14:48Z","html_url":"https://github.com/Uysim/troubleticket/pull/15#discussion_r94209365","pull_request_url":"https://api.github.com/repos/Uysim/troubleticket/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/Uysim/troubleticket/pulls/comments/94209365"},"html":{"href":"https://github.com/Uysim/troubleticket/pull/15#discussion_r94209365"},"pull_request":{"href":"https://api.github.com/repos/Uysim/troubleticket/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/Uysim/troubleticket/pulls/15","id":99722386,"html_url":"https://github.com/Uysim/troubleticket/pull/15","diff_url":"https://github.com/Uysim/troubleticket/pull/15.diff","patch_url":"https://github.com/Uysim/troubleticket/pull/15.patch","issue_url":"https://api.github.com/repos/Uysim/troubleticket/issues/15","number":15,"state":"open","locked":false,"title":"assigned support to trouble","user":{"login":"Uysim","id":10666612,"avatar_url":"https://avatars.githubusercontent.com/u/10666612?v=3","gravatar_id":"","url":"https://api.github.com/users/Uysim","html_url":"https://github.com/Uysim","followers_url":"https://api.github.com/users/Uysim/followers","following_url":"https://api.github.com/users/Uysim/following{/other_user}","gists_url":"https://api.github.com/users/Uysim/gists{/gist_id}","starred_url":"https://api.github.com/users/Uysim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uysim/subscriptions","organizations_url":"https://api.github.com/users/Uysim/orgs","repos_url":"https://api.github.com/users/Uysim/repos","events_url":"https://api.github.com/users/Uysim/events{/privacy}","received_events_url":"https://api.github.com/users/Uysim/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-30T04:53:12Z","updated_at":"2016-12-30T08:14:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Uysim/troubleticket/pulls/15/commits","review_comments_url":"https://api.github.com/repos/Uysim/troubleticket/pulls/15/comments","review_comment_url":"https://api.github.com/repos/Uysim/troubleticket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Uysim/troubleticket/issues/15/comments","statuses_url":"https://api.github.com/repos/Uysim/troubleticket/statuses/491eb7abcfd8b7861ea586dd5cf1aa3406f0055b","head":{"label":"Uysim:assigned-support-to-trouble","ref":"assigned-support-to-trouble","sha":"491eb7abcfd8b7861ea586dd5cf1aa3406f0055b","user":{"login":"Uysim","id":10666612,"avatar_url":"https://avatars.githubusercontent.com/u/10666612?v=3","gravatar_id":"","url":"https://api.github.com/users/Uysim","html_url":"https://github.com/Uysim","followers_url":"https://api.github.com/users/Uysim/followers","following_url":"https://api.github.com/users/Uysim/following{/other_user}","gists_url":"https://api.github.com/users/Uysim/gists{/gist_id}","starred_url":"https://api.github.com/users/Uysim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uysim/subscriptions","organizations_url":"https://api.github.com/users/Uysim/orgs","repos_url":"https://api.github.com/users/Uysim/repos","events_url":"https://api.github.com/users/Uysim/events{/privacy}","received_events_url":"https://api.github.com/users/Uysim/received_events","type":"User","site_admin":false},"repo":{"id":77452808,"name":"troubleticket","full_name":"Uysim/troubleticket","owner":{"login":"Uysim","id":10666612,"avatar_url":"https://avatars.githubusercontent.com/u/10666612?v=3","gravatar_id":"","url":"https://api.github.com/users/Uysim","html_url":"https://github.com/Uysim","followers_url":"https://api.github.com/users/Uysim/followers","following_url":"https://api.github.com/users/Uysim/following{/other_user}","gists_url":"https://api.github.com/users/Uysim/gists{/gist_id}","starred_url":"https://api.github.com/users/Uysim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uysim/subscriptions","organizations_url":"https://api.github.com/users/Uysim/orgs","repos_url":"https://api.github.com/users/Uysim/repos","events_url":"https://api.github.com/users/Uysim/events{/privacy}","received_events_url":"https://api.github.com/users/Uysim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Uysim/troubleticket","description":null,"fork":false,"url":"https://api.github.com/repos/Uysim/troubleticket","forks_url":"https://api.github.com/repos/Uysim/troubleticket/forks","keys_url":"https://api.github.com/repos/Uysim/troubleticket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Uysim/troubleticket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Uysim/troubleticket/teams","hooks_url":"https://api.github.com/repos/Uysim/troubleticket/hooks","issue_events_url":"https://api.github.com/repos/Uysim/troubleticket/issues/events{/number}","events_url":"https://api.github.com/repos/Uysim/troubleticket/events","assignees_url":"https://api.github.com/repos/Uysim/troubleticket/assignees{/user}","branches_url":"https://api.github.com/repos/Uysim/troubleticket/branches{/branch}","tags_url":"https://api.github.com/repos/Uysim/troubleticket/tags","blobs_url":"https://api.github.com/repos/Uysim/troubleticket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Uysim/troubleticket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Uysim/troubleticket/git/refs{/sha}","trees_url":"https://api.github.com/repos/Uysim/troubleticket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Uysim/troubleticket/statuses/{sha}","languages_url":"https://api.github.com/repos/Uysim/troubleticket/languages","stargazers_url":"https://api.github.com/repos/Uysim/troubleticket/stargazers","contributors_url":"https://api.github.com/repos/Uysim/troubleticket/contributors","subscribers_url":"https://api.github.com/repos/Uysim/troubleticket/subscribers","subscription_url":"https://api.github.com/repos/Uysim/troubleticket/subscription","commits_url":"https://api.github.com/repos/Uysim/troubleticket/commits{/sha}","git_commits_url":"https://api.github.com/repos/Uysim/troubleticket/git/commits{/sha}","comments_url":"https://api.github.com/repos/Uysim/troubleticket/comments{/number}","issue_comment_url":"https://api.github.com/repos/Uysim/troubleticket/issues/comments{/number}","contents_url":"https://api.github.com/repos/Uysim/troubleticket/contents/{+path}","compare_url":"https://api.github.com/repos/Uysim/troubleticket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Uysim/troubleticket/merges","archive_url":"https://api.github.com/repos/Uysim/troubleticket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Uysim/troubleticket/downloads","issues_url":"https://api.github.com/repos/Uysim/troubleticket/issues{/number}","pulls_url":"https://api.github.com/repos/Uysim/troubleticket/pulls{/number}","milestones_url":"https://api.github.com/repos/Uysim/troubleticket/milestones{/number}","notifications_url":"https://api.github.com/repos/Uysim/troubleticket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Uysim/troubleticket/labels{/name}","releases_url":"https://api.github.com/repos/Uysim/troubleticket/releases{/id}","deployments_url":"https://api.github.com/repos/Uysim/troubleticket/deployments","created_at":"2016-12-27T12:09:45Z","updated_at":"2016-12-27T12:16:25Z","pushed_at":"2016-12-30T08:13:09Z","git_url":"git://github.com/Uysim/troubleticket.git","ssh_url":"git@github.com:Uysim/troubleticket.git","clone_url":"https://github.com/Uysim/troubleticket.git","svn_url":"https://github.com/Uysim/troubleticket","homepage":null,"size":310,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Uysim:master","ref":"master","sha":"26eb49021e070d4636df3a72aaf803e160a0877e","user":{"login":"Uysim","id":10666612,"avatar_url":"https://avatars.githubusercontent.com/u/10666612?v=3","gravatar_id":"","url":"https://api.github.com/users/Uysim","html_url":"https://github.com/Uysim","followers_url":"https://api.github.com/users/Uysim/followers","following_url":"https://api.github.com/users/Uysim/following{/other_user}","gists_url":"https://api.github.com/users/Uysim/gists{/gist_id}","starred_url":"https://api.github.com/users/Uysim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uysim/subscriptions","organizations_url":"https://api.github.com/users/Uysim/orgs","repos_url":"https://api.github.com/users/Uysim/repos","events_url":"https://api.github.com/users/Uysim/events{/privacy}","received_events_url":"https://api.github.com/users/Uysim/received_events","type":"User","site_admin":false},"repo":{"id":77452808,"name":"troubleticket","full_name":"Uysim/troubleticket","owner":{"login":"Uysim","id":10666612,"avatar_url":"https://avatars.githubusercontent.com/u/10666612?v=3","gravatar_id":"","url":"https://api.github.com/users/Uysim","html_url":"https://github.com/Uysim","followers_url":"https://api.github.com/users/Uysim/followers","following_url":"https://api.github.com/users/Uysim/following{/other_user}","gists_url":"https://api.github.com/users/Uysim/gists{/gist_id}","starred_url":"https://api.github.com/users/Uysim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Uysim/subscriptions","organizations_url":"https://api.github.com/users/Uysim/orgs","repos_url":"https://api.github.com/users/Uysim/repos","events_url":"https://api.github.com/users/Uysim/events{/privacy}","received_events_url":"https://api.github.com/users/Uysim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Uysim/troubleticket","description":null,"fork":false,"url":"https://api.github.com/repos/Uysim/troubleticket","forks_url":"https://api.github.com/repos/Uysim/troubleticket/forks","keys_url":"https://api.github.com/repos/Uysim/troubleticket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Uysim/troubleticket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Uysim/troubleticket/teams","hooks_url":"https://api.github.com/repos/Uysim/troubleticket/hooks","issue_events_url":"https://api.github.com/repos/Uysim/troubleticket/issues/events{/number}","events_url":"https://api.github.com/repos/Uysim/troubleticket/events","assignees_url":"https://api.github.com/repos/Uysim/troubleticket/assignees{/user}","branches_url":"https://api.github.com/repos/Uysim/troubleticket/branches{/branch}","tags_url":"https://api.github.com/repos/Uysim/troubleticket/tags","blobs_url":"https://api.github.com/repos/Uysim/troubleticket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Uysim/troubleticket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Uysim/troubleticket/git/refs{/sha}","trees_url":"https://api.github.com/repos/Uysim/troubleticket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Uysim/troubleticket/statuses/{sha}","languages_url":"https://api.github.com/repos/Uysim/troubleticket/languages","stargazers_url":"https://api.github.com/repos/Uysim/troubleticket/stargazers","contributors_url":"https://api.github.com/repos/Uysim/troubleticket/contributors","subscribers_url":"https://api.github.com/repos/Uysim/troubleticket/subscribers","subscription_url":"https://api.github.com/repos/Uysim/troubleticket/subscription","commits_url":"https://api.github.com/repos/Uysim/troubleticket/commits{/sha}","git_commits_url":"https://api.github.com/repos/Uysim/troubleticket/git/commits{/sha}","comments_url":"https://api.github.com/repos/Uysim/troubleticket/comments{/number}","issue_comment_url":"https://api.github.com/repos/Uysim/troubleticket/issues/comments{/number}","contents_url":"https://api.github.com/repos/Uysim/troubleticket/contents/{+path}","compare_url":"https://api.github.com/repos/Uysim/troubleticket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Uysim/troubleticket/merges","archive_url":"https://api.github.com/repos/Uysim/troubleticket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Uysim/troubleticket/downloads","issues_url":"https://api.github.com/repos/Uysim/troubleticket/issues{/number}","pulls_url":"https://api.github.com/repos/Uysim/troubleticket/pulls{/number}","milestones_url":"https://api.github.com/repos/Uysim/troubleticket/milestones{/number}","notifications_url":"https://api.github.com/repos/Uysim/troubleticket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Uysim/troubleticket/labels{/name}","releases_url":"https://api.github.com/repos/Uysim/troubleticket/releases{/id}","deployments_url":"https://api.github.com/repos/Uysim/troubleticket/deployments","created_at":"2016-12-27T12:09:45Z","updated_at":"2016-12-27T12:16:25Z","pushed_at":"2016-12-30T08:13:09Z","git_url":"git://github.com/Uysim/troubleticket.git","ssh_url":"git@github.com:Uysim/troubleticket.git","clone_url":"https://github.com/Uysim/troubleticket.git","svn_url":"https://github.com/Uysim/troubleticket","homepage":null,"size":310,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Uysim/troubleticket/pulls/15"},"html":{"href":"https://github.com/Uysim/troubleticket/pull/15"},"issue":{"href":"https://api.github.com/repos/Uysim/troubleticket/issues/15"},"comments":{"href":"https://api.github.com/repos/Uysim/troubleticket/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/Uysim/troubleticket/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/Uysim/troubleticket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Uysim/troubleticket/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/Uysim/troubleticket/statuses/491eb7abcfd8b7861ea586dd5cf1aa3406f0055b"}}}}
{"actor":{"display_login":"chileap"}}