{"action":"created","comment":{"url":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/comments/54804235","id":54804235,"diff_hunk":"@@ -0,0 +1,24 @@\n+<?php\n+\n+namespace REBELinBLUE\\Deployer\\Policies;\n+\n+use Illuminate\\Auth\\Access\\HandlesAuthorization;\n+use REBELinBLUE\\Deployer\\Project;\n+use REBELinBLUE\\Deployer\\User;\n+\n+class ProjectPolicy\n+{\n+    use HandlesAuthorization;\n+\n+    public function view(User $user, Project $project)\n+    {\n+        if ($user->hasPermissionTo('projects.*.view', $project->id)) {\n+            return true;\n+        }\n+    }\n+\n+    public function deploy(User $user, Project $project)","path":"app/Policies/ProjectPolicy.php","position":20,"original_position":20,"commit_id":"6a9866219b0f5afa7912fd4d97473bc322955ea2","original_commit_id":"881d9a556b84f968e81e5b3a9563a6d168891ad8","user":{"login":"Deployer-CIBot","id":12595686,"avatar_url":"https://avatars.githubusercontent.com/u/12595686?v=3","gravatar_id":"","url":"https://api.github.com/users/Deployer-CIBot","html_url":"https://github.com/Deployer-CIBot","followers_url":"https://api.github.com/users/Deployer-CIBot/followers","following_url":"https://api.github.com/users/Deployer-CIBot/following{/other_user}","gists_url":"https://api.github.com/users/Deployer-CIBot/gists{/gist_id}","starred_url":"https://api.github.com/users/Deployer-CIBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deployer-CIBot/subscriptions","organizations_url":"https://api.github.com/users/Deployer-CIBot/orgs","repos_url":"https://api.github.com/users/Deployer-CIBot/repos","events_url":"https://api.github.com/users/Deployer-CIBot/events{/privacy}","received_events_url":"https://api.github.com/users/Deployer-CIBot/received_events","type":"User","site_admin":false},"body":"ProjectPolicy::deploy is missing a docblock.","created_at":"2016-03-02T22:34:05Z","updated_at":"2016-03-02T22:34:05Z","html_url":"https://github.com/REBELinBLUE/deployer/pull/182#discussion_r54804235","pull_request_url":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/182","_links":{"self":{"href":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/comments/54804235"},"html":{"href":"https://github.com/REBELinBLUE/deployer/pull/182#discussion_r54804235"},"pull_request":{"href":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/182"}}},"pull_request":{"url":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/182","id":61010490,"html_url":"https://github.com/REBELinBLUE/deployer/pull/182","diff_url":"https://github.com/REBELinBLUE/deployer/pull/182.diff","patch_url":"https://github.com/REBELinBLUE/deployer/pull/182.patch","issue_url":"https://api.github.com/repos/REBELinBLUE/deployer/issues/182","number":182,"state":"open","locked":false,"title":"Access control lists/User levels","user":{"login":"REBELinBLUE","id":2143908,"avatar_url":"https://avatars.githubusercontent.com/u/2143908?v=3","gravatar_id":"","url":"https://api.github.com/users/REBELinBLUE","html_url":"https://github.com/REBELinBLUE","followers_url":"https://api.github.com/users/REBELinBLUE/followers","following_url":"https://api.github.com/users/REBELinBLUE/following{/other_user}","gists_url":"https://api.github.com/users/REBELinBLUE/gists{/gist_id}","starred_url":"https://api.github.com/users/REBELinBLUE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/REBELinBLUE/subscriptions","organizations_url":"https://api.github.com/users/REBELinBLUE/orgs","repos_url":"https://api.github.com/users/REBELinBLUE/repos","events_url":"https://api.github.com/users/REBELinBLUE/events{/privacy}","received_events_url":"https://api.github.com/users/REBELinBLUE/received_events","type":"User","site_admin":false},"body":"Related to issue #77 \r\n\r\nVery much a work in progress\r\n","created_at":"2016-02-28T22:40:03Z","updated_at":"2016-03-02T22:34:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"faa542aa5b30cfdc338859e02deaaf387b71e08c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/182/commits","review_comments_url":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/182/comments","review_comment_url":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/REBELinBLUE/deployer/issues/182/comments","statuses_url":"https://api.github.com/repos/REBELinBLUE/deployer/statuses/6a9866219b0f5afa7912fd4d97473bc322955ea2","head":{"label":"REBELinBLUE:acl","ref":"acl","sha":"6a9866219b0f5afa7912fd4d97473bc322955ea2","user":{"login":"REBELinBLUE","id":2143908,"avatar_url":"https://avatars.githubusercontent.com/u/2143908?v=3","gravatar_id":"","url":"https://api.github.com/users/REBELinBLUE","html_url":"https://github.com/REBELinBLUE","followers_url":"https://api.github.com/users/REBELinBLUE/followers","following_url":"https://api.github.com/users/REBELinBLUE/following{/other_user}","gists_url":"https://api.github.com/users/REBELinBLUE/gists{/gist_id}","starred_url":"https://api.github.com/users/REBELinBLUE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/REBELinBLUE/subscriptions","organizations_url":"https://api.github.com/users/REBELinBLUE/orgs","repos_url":"https://api.github.com/users/REBELinBLUE/repos","events_url":"https://api.github.com/users/REBELinBLUE/events{/privacy}","received_events_url":"https://api.github.com/users/REBELinBLUE/received_events","type":"User","site_admin":false},"repo":{"id":33559148,"name":"deployer","full_name":"REBELinBLUE/deployer","owner":{"login":"REBELinBLUE","id":2143908,"avatar_url":"https://avatars.githubusercontent.com/u/2143908?v=3","gravatar_id":"","url":"https://api.github.com/users/REBELinBLUE","html_url":"https://github.com/REBELinBLUE","followers_url":"https://api.github.com/users/REBELinBLUE/followers","following_url":"https://api.github.com/users/REBELinBLUE/following{/other_user}","gists_url":"https://api.github.com/users/REBELinBLUE/gists{/gist_id}","starred_url":"https://api.github.com/users/REBELinBLUE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/REBELinBLUE/subscriptions","organizations_url":"https://api.github.com/users/REBELinBLUE/orgs","repos_url":"https://api.github.com/users/REBELinBLUE/repos","events_url":"https://api.github.com/users/REBELinBLUE/events{/privacy}","received_events_url":"https://api.github.com/users/REBELinBLUE/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/REBELinBLUE/deployer","description":"Deployer is a free and open source deployment tool.","fork":false,"url":"https://api.github.com/repos/REBELinBLUE/deployer","forks_url":"https://api.github.com/repos/REBELinBLUE/deployer/forks","keys_url":"https://api.github.com/repos/REBELinBLUE/deployer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/REBELinBLUE/deployer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/REBELinBLUE/deployer/teams","hooks_url":"https://api.github.com/repos/REBELinBLUE/deployer/hooks","issue_events_url":"https://api.github.com/repos/REBELinBLUE/deployer/issues/events{/number}","events_url":"https://api.github.com/repos/REBELinBLUE/deployer/events","assignees_url":"https://api.github.com/repos/REBELinBLUE/deployer/assignees{/user}","branches_url":"https://api.github.com/repos/REBELinBLUE/deployer/branches{/branch}","tags_url":"https://api.github.com/repos/REBELinBLUE/deployer/tags","blobs_url":"https://api.github.com/repos/REBELinBLUE/deployer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/REBELinBLUE/deployer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/REBELinBLUE/deployer/git/refs{/sha}","trees_url":"https://api.github.com/repos/REBELinBLUE/deployer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/REBELinBLUE/deployer/statuses/{sha}","languages_url":"https://api.github.com/repos/REBELinBLUE/deployer/languages","stargazers_url":"https://api.github.com/repos/REBELinBLUE/deployer/stargazers","contributors_url":"https://api.github.com/repos/REBELinBLUE/deployer/contributors","subscribers_url":"https://api.github.com/repos/REBELinBLUE/deployer/subscribers","subscription_url":"https://api.github.com/repos/REBELinBLUE/deployer/subscription","commits_url":"https://api.github.com/repos/REBELinBLUE/deployer/commits{/sha}","git_commits_url":"https://api.github.com/repos/REBELinBLUE/deployer/git/commits{/sha}","comments_url":"https://api.github.com/repos/REBELinBLUE/deployer/comments{/number}","issue_comment_url":"https://api.github.com/repos/REBELinBLUE/deployer/issues/comments{/number}","contents_url":"https://api.github.com/repos/REBELinBLUE/deployer/contents/{+path}","compare_url":"https://api.github.com/repos/REBELinBLUE/deployer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/REBELinBLUE/deployer/merges","archive_url":"https://api.github.com/repos/REBELinBLUE/deployer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/REBELinBLUE/deployer/downloads","issues_url":"https://api.github.com/repos/REBELinBLUE/deployer/issues{/number}","pulls_url":"https://api.github.com/repos/REBELinBLUE/deployer/pulls{/number}","milestones_url":"https://api.github.com/repos/REBELinBLUE/deployer/milestones{/number}","notifications_url":"https://api.github.com/repos/REBELinBLUE/deployer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/REBELinBLUE/deployer/labels{/name}","releases_url":"https://api.github.com/repos/REBELinBLUE/deployer/releases{/id}","deployments_url":"https://api.github.com/repos/REBELinBLUE/deployer/deployments","created_at":"2015-04-07T17:55:16Z","updated_at":"2016-03-02T09:54:04Z","pushed_at":"2016-03-02T22:30:39Z","git_url":"git://github.com/REBELinBLUE/deployer.git","ssh_url":"git@github.com:REBELinBLUE/deployer.git","clone_url":"https://github.com/REBELinBLUE/deployer.git","svn_url":"https://github.com/REBELinBLUE/deployer","homepage":"http://phpdeployment.org","size":15280,"stargazers_count":135,"watchers_count":135,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":24,"forks":29,"open_issues":24,"watchers":135,"default_branch":"master"}},"base":{"label":"REBELinBLUE:master","ref":"master","sha":"044983be888ed1ffe7d3c107d9e8ff7fc884124c","user":{"login":"REBELinBLUE","id":2143908,"avatar_url":"https://avatars.githubusercontent.com/u/2143908?v=3","gravatar_id":"","url":"https://api.github.com/users/REBELinBLUE","html_url":"https://github.com/REBELinBLUE","followers_url":"https://api.github.com/users/REBELinBLUE/followers","following_url":"https://api.github.com/users/REBELinBLUE/following{/other_user}","gists_url":"https://api.github.com/users/REBELinBLUE/gists{/gist_id}","starred_url":"https://api.github.com/users/REBELinBLUE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/REBELinBLUE/subscriptions","organizations_url":"https://api.github.com/users/REBELinBLUE/orgs","repos_url":"https://api.github.com/users/REBELinBLUE/repos","events_url":"https://api.github.com/users/REBELinBLUE/events{/privacy}","received_events_url":"https://api.github.com/users/REBELinBLUE/received_events","type":"User","site_admin":false},"repo":{"id":33559148,"name":"deployer","full_name":"REBELinBLUE/deployer","owner":{"login":"REBELinBLUE","id":2143908,"avatar_url":"https://avatars.githubusercontent.com/u/2143908?v=3","gravatar_id":"","url":"https://api.github.com/users/REBELinBLUE","html_url":"https://github.com/REBELinBLUE","followers_url":"https://api.github.com/users/REBELinBLUE/followers","following_url":"https://api.github.com/users/REBELinBLUE/following{/other_user}","gists_url":"https://api.github.com/users/REBELinBLUE/gists{/gist_id}","starred_url":"https://api.github.com/users/REBELinBLUE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/REBELinBLUE/subscriptions","organizations_url":"https://api.github.com/users/REBELinBLUE/orgs","repos_url":"https://api.github.com/users/REBELinBLUE/repos","events_url":"https://api.github.com/users/REBELinBLUE/events{/privacy}","received_events_url":"https://api.github.com/users/REBELinBLUE/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/REBELinBLUE/deployer","description":"Deployer is a free and open source deployment tool.","fork":false,"url":"https://api.github.com/repos/REBELinBLUE/deployer","forks_url":"https://api.github.com/repos/REBELinBLUE/deployer/forks","keys_url":"https://api.github.com/repos/REBELinBLUE/deployer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/REBELinBLUE/deployer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/REBELinBLUE/deployer/teams","hooks_url":"https://api.github.com/repos/REBELinBLUE/deployer/hooks","issue_events_url":"https://api.github.com/repos/REBELinBLUE/deployer/issues/events{/number}","events_url":"https://api.github.com/repos/REBELinBLUE/deployer/events","assignees_url":"https://api.github.com/repos/REBELinBLUE/deployer/assignees{/user}","branches_url":"https://api.github.com/repos/REBELinBLUE/deployer/branches{/branch}","tags_url":"https://api.github.com/repos/REBELinBLUE/deployer/tags","blobs_url":"https://api.github.com/repos/REBELinBLUE/deployer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/REBELinBLUE/deployer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/REBELinBLUE/deployer/git/refs{/sha}","trees_url":"https://api.github.com/repos/REBELinBLUE/deployer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/REBELinBLUE/deployer/statuses/{sha}","languages_url":"https://api.github.com/repos/REBELinBLUE/deployer/languages","stargazers_url":"https://api.github.com/repos/REBELinBLUE/deployer/stargazers","contributors_url":"https://api.github.com/repos/REBELinBLUE/deployer/contributors","subscribers_url":"https://api.github.com/repos/REBELinBLUE/deployer/subscribers","subscription_url":"https://api.github.com/repos/REBELinBLUE/deployer/subscription","commits_url":"https://api.github.com/repos/REBELinBLUE/deployer/commits{/sha}","git_commits_url":"https://api.github.com/repos/REBELinBLUE/deployer/git/commits{/sha}","comments_url":"https://api.github.com/repos/REBELinBLUE/deployer/comments{/number}","issue_comment_url":"https://api.github.com/repos/REBELinBLUE/deployer/issues/comments{/number}","contents_url":"https://api.github.com/repos/REBELinBLUE/deployer/contents/{+path}","compare_url":"https://api.github.com/repos/REBELinBLUE/deployer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/REBELinBLUE/deployer/merges","archive_url":"https://api.github.com/repos/REBELinBLUE/deployer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/REBELinBLUE/deployer/downloads","issues_url":"https://api.github.com/repos/REBELinBLUE/deployer/issues{/number}","pulls_url":"https://api.github.com/repos/REBELinBLUE/deployer/pulls{/number}","milestones_url":"https://api.github.com/repos/REBELinBLUE/deployer/milestones{/number}","notifications_url":"https://api.github.com/repos/REBELinBLUE/deployer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/REBELinBLUE/deployer/labels{/name}","releases_url":"https://api.github.com/repos/REBELinBLUE/deployer/releases{/id}","deployments_url":"https://api.github.com/repos/REBELinBLUE/deployer/deployments","created_at":"2015-04-07T17:55:16Z","updated_at":"2016-03-02T09:54:04Z","pushed_at":"2016-03-02T22:30:39Z","git_url":"git://github.com/REBELinBLUE/deployer.git","ssh_url":"git@github.com:REBELinBLUE/deployer.git","clone_url":"https://github.com/REBELinBLUE/deployer.git","svn_url":"https://github.com/REBELinBLUE/deployer","homepage":"http://phpdeployment.org","size":15280,"stargazers_count":135,"watchers_count":135,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":24,"forks":29,"open_issues":24,"watchers":135,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/182"},"html":{"href":"https://github.com/REBELinBLUE/deployer/pull/182"},"issue":{"href":"https://api.github.com/repos/REBELinBLUE/deployer/issues/182"},"comments":{"href":"https://api.github.com/repos/REBELinBLUE/deployer/issues/182/comments"},"review_comments":{"href":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/182/comments"},"review_comment":{"href":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/REBELinBLUE/deployer/pulls/182/commits"},"statuses":{"href":"https://api.github.com/repos/REBELinBLUE/deployer/statuses/6a9866219b0f5afa7912fd4d97473bc322955ea2"}}}}