{"action":"created","comment":{"url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/24814069","id":24814069,"diff_hunk":"@@ -47,8 +47,9 @@ public function handleLogin(Socialite $socialite)\n         $response = $socialite->driver('github');\n \n         $response->scopes([\n-            'repo',\n+            'read:org',\n             'user:email',\n+            'public_repo',","path":"app/Http/Controllers/AuthController.php","position":7,"original_position":7,"commit_id":"480fc0d36a555083065f109b219f8e7a0b32c78d","original_commit_id":"480fc0d36a555083065f109b219f8e7a0b32c78d","user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"body":"we need to be able to access private repos...","created_at":"2015-02-17T13:05:22Z","updated_at":"2015-02-17T13:05:22Z","html_url":"https://github.com/StyleCI/StyleCI/pull/139#discussion_r24814069","pull_request_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/24814069"},"html":{"href":"https://github.com/StyleCI/StyleCI/pull/139#discussion_r24814069"},"pull_request":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/139","id":29440034,"html_url":"https://github.com/StyleCI/StyleCI/pull/139","diff_url":"https://github.com/StyleCI/StyleCI/pull/139.diff","patch_url":"https://github.com/StyleCI/StyleCI/pull/139.patch","issue_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/139","number":139,"state":"open","locked":false,"title":"Private repos","user":{"login":"trizz","id":832056,"avatar_url":"https://avatars.githubusercontent.com/u/832056?v=3","gravatar_id":"","url":"https://api.github.com/users/trizz","html_url":"https://github.com/trizz","followers_url":"https://api.github.com/users/trizz/followers","following_url":"https://api.github.com/users/trizz/following{/other_user}","gists_url":"https://api.github.com/users/trizz/gists{/gist_id}","starred_url":"https://api.github.com/users/trizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trizz/subscriptions","organizations_url":"https://api.github.com/users/trizz/orgs","repos_url":"https://api.github.com/users/trizz/repos","events_url":"https://api.github.com/users/trizz/events{/privacy}","received_events_url":"https://api.github.com/users/trizz/received_events","type":"User","site_admin":false},"body":"For my organisation, we also need access to our private repos. This PR makes that possible, but by default it is turned off (no change in default StyleCI behaviour). To enable it, change `PRIVATE_REPOS` in the env file to true. The user can now enable private repos on their account page. \r\n\r\nAn analyse report of a private repo is only accessible by a user who has also access to the repo itself, otherwise he/she is being redirect to the frontpage.","created_at":"2015-02-17T13:01:16Z","updated_at":"2015-02-17T13:05:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b3b2a056a3ee6a6b3428c633a8c761aee29614f","assignee":null,"milestone":{"url":"https://api.github.com/repos/StyleCI/StyleCI/milestones/2","labels_url":"https://api.github.com/repos/StyleCI/StyleCI/milestones/2/labels","id":970720,"number":2,"title":"V0.2.0 Alpha","description":"","creator":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":0,"state":"open","created_at":"2015-02-08T19:54:20Z","updated_at":"2015-02-17T13:03:47Z","due_on":"2015-02-28T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/139/commits","review_comments_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/139/comments","review_comment_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/{number}","comments_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/139/comments","statuses_url":"https://api.github.com/repos/StyleCI/StyleCI/statuses/480fc0d36a555083065f109b219f8e7a0b32c78d","head":{"label":"trizz:private-repos","ref":"private-repos","sha":"480fc0d36a555083065f109b219f8e7a0b32c78d","user":{"login":"trizz","id":832056,"avatar_url":"https://avatars.githubusercontent.com/u/832056?v=3","gravatar_id":"","url":"https://api.github.com/users/trizz","html_url":"https://github.com/trizz","followers_url":"https://api.github.com/users/trizz/followers","following_url":"https://api.github.com/users/trizz/following{/other_user}","gists_url":"https://api.github.com/users/trizz/gists{/gist_id}","starred_url":"https://api.github.com/users/trizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trizz/subscriptions","organizations_url":"https://api.github.com/users/trizz/orgs","repos_url":"https://api.github.com/users/trizz/repos","events_url":"https://api.github.com/users/trizz/events{/privacy}","received_events_url":"https://api.github.com/users/trizz/received_events","type":"User","site_admin":false},"repo":{"id":30866664,"name":"StyleCI","full_name":"trizz/StyleCI","owner":{"login":"trizz","id":832056,"avatar_url":"https://avatars.githubusercontent.com/u/832056?v=3","gravatar_id":"","url":"https://api.github.com/users/trizz","html_url":"https://github.com/trizz","followers_url":"https://api.github.com/users/trizz/followers","following_url":"https://api.github.com/users/trizz/following{/other_user}","gists_url":"https://api.github.com/users/trizz/gists{/gist_id}","starred_url":"https://api.github.com/users/trizz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trizz/subscriptions","organizations_url":"https://api.github.com/users/trizz/orgs","repos_url":"https://api.github.com/users/trizz/repos","events_url":"https://api.github.com/users/trizz/events{/privacy}","received_events_url":"https://api.github.com/users/trizz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trizz/StyleCI","description":"A PHP coding style continuous integration service","fork":true,"url":"https://api.github.com/repos/trizz/StyleCI","forks_url":"https://api.github.com/repos/trizz/StyleCI/forks","keys_url":"https://api.github.com/repos/trizz/StyleCI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trizz/StyleCI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trizz/StyleCI/teams","hooks_url":"https://api.github.com/repos/trizz/StyleCI/hooks","issue_events_url":"https://api.github.com/repos/trizz/StyleCI/issues/events{/number}","events_url":"https://api.github.com/repos/trizz/StyleCI/events","assignees_url":"https://api.github.com/repos/trizz/StyleCI/assignees{/user}","branches_url":"https://api.github.com/repos/trizz/StyleCI/branches{/branch}","tags_url":"https://api.github.com/repos/trizz/StyleCI/tags","blobs_url":"https://api.github.com/repos/trizz/StyleCI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trizz/StyleCI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trizz/StyleCI/git/refs{/sha}","trees_url":"https://api.github.com/repos/trizz/StyleCI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trizz/StyleCI/statuses/{sha}","languages_url":"https://api.github.com/repos/trizz/StyleCI/languages","stargazers_url":"https://api.github.com/repos/trizz/StyleCI/stargazers","contributors_url":"https://api.github.com/repos/trizz/StyleCI/contributors","subscribers_url":"https://api.github.com/repos/trizz/StyleCI/subscribers","subscription_url":"https://api.github.com/repos/trizz/StyleCI/subscription","commits_url":"https://api.github.com/repos/trizz/StyleCI/commits{/sha}","git_commits_url":"https://api.github.com/repos/trizz/StyleCI/git/commits{/sha}","comments_url":"https://api.github.com/repos/trizz/StyleCI/comments{/number}","issue_comment_url":"https://api.github.com/repos/trizz/StyleCI/issues/comments/{number}","contents_url":"https://api.github.com/repos/trizz/StyleCI/contents/{+path}","compare_url":"https://api.github.com/repos/trizz/StyleCI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trizz/StyleCI/merges","archive_url":"https://api.github.com/repos/trizz/StyleCI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trizz/StyleCI/downloads","issues_url":"https://api.github.com/repos/trizz/StyleCI/issues{/number}","pulls_url":"https://api.github.com/repos/trizz/StyleCI/pulls{/number}","milestones_url":"https://api.github.com/repos/trizz/StyleCI/milestones{/number}","notifications_url":"https://api.github.com/repos/trizz/StyleCI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trizz/StyleCI/labels{/name}","releases_url":"https://api.github.com/repos/trizz/StyleCI/releases{/id}","created_at":"2015-02-16T12:06:37Z","updated_at":"2015-02-17T12:46:28Z","pushed_at":"2015-02-17T13:00:53Z","git_url":"git://github.com/trizz/StyleCI.git","ssh_url":"git@github.com:trizz/StyleCI.git","clone_url":"https://github.com/trizz/StyleCI.git","svn_url":"https://github.com/trizz/StyleCI","homepage":"https://styleci.io/","size":2124,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"StyleCI:master","ref":"master","sha":"4d616610cb7e54ea1b35faa4359b91edd28dacc0","user":{"login":"StyleCI","id":10179029,"avatar_url":"https://avatars.githubusercontent.com/u/10179029?v=3","gravatar_id":"","url":"https://api.github.com/users/StyleCI","html_url":"https://github.com/StyleCI","followers_url":"https://api.github.com/users/StyleCI/followers","following_url":"https://api.github.com/users/StyleCI/following{/other_user}","gists_url":"https://api.github.com/users/StyleCI/gists{/gist_id}","starred_url":"https://api.github.com/users/StyleCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StyleCI/subscriptions","organizations_url":"https://api.github.com/users/StyleCI/orgs","repos_url":"https://api.github.com/users/StyleCI/repos","events_url":"https://api.github.com/users/StyleCI/events{/privacy}","received_events_url":"https://api.github.com/users/StyleCI/received_events","type":"Organization","site_admin":false},"repo":{"id":26929642,"name":"StyleCI","full_name":"StyleCI/StyleCI","owner":{"login":"StyleCI","id":10179029,"avatar_url":"https://avatars.githubusercontent.com/u/10179029?v=3","gravatar_id":"","url":"https://api.github.com/users/StyleCI","html_url":"https://github.com/StyleCI","followers_url":"https://api.github.com/users/StyleCI/followers","following_url":"https://api.github.com/users/StyleCI/following{/other_user}","gists_url":"https://api.github.com/users/StyleCI/gists{/gist_id}","starred_url":"https://api.github.com/users/StyleCI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StyleCI/subscriptions","organizations_url":"https://api.github.com/users/StyleCI/orgs","repos_url":"https://api.github.com/users/StyleCI/repos","events_url":"https://api.github.com/users/StyleCI/events{/privacy}","received_events_url":"https://api.github.com/users/StyleCI/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StyleCI/StyleCI","description":"A PHP coding style continuous integration service","fork":false,"url":"https://api.github.com/repos/StyleCI/StyleCI","forks_url":"https://api.github.com/repos/StyleCI/StyleCI/forks","keys_url":"https://api.github.com/repos/StyleCI/StyleCI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StyleCI/StyleCI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StyleCI/StyleCI/teams","hooks_url":"https://api.github.com/repos/StyleCI/StyleCI/hooks","issue_events_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/events{/number}","events_url":"https://api.github.com/repos/StyleCI/StyleCI/events","assignees_url":"https://api.github.com/repos/StyleCI/StyleCI/assignees{/user}","branches_url":"https://api.github.com/repos/StyleCI/StyleCI/branches{/branch}","tags_url":"https://api.github.com/repos/StyleCI/StyleCI/tags","blobs_url":"https://api.github.com/repos/StyleCI/StyleCI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StyleCI/StyleCI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StyleCI/StyleCI/git/refs{/sha}","trees_url":"https://api.github.com/repos/StyleCI/StyleCI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StyleCI/StyleCI/statuses/{sha}","languages_url":"https://api.github.com/repos/StyleCI/StyleCI/languages","stargazers_url":"https://api.github.com/repos/StyleCI/StyleCI/stargazers","contributors_url":"https://api.github.com/repos/StyleCI/StyleCI/contributors","subscribers_url":"https://api.github.com/repos/StyleCI/StyleCI/subscribers","subscription_url":"https://api.github.com/repos/StyleCI/StyleCI/subscription","commits_url":"https://api.github.com/repos/StyleCI/StyleCI/commits{/sha}","git_commits_url":"https://api.github.com/repos/StyleCI/StyleCI/git/commits{/sha}","comments_url":"https://api.github.com/repos/StyleCI/StyleCI/comments{/number}","issue_comment_url":"https://api.github.com/repos/StyleCI/StyleCI/issues/comments/{number}","contents_url":"https://api.github.com/repos/StyleCI/StyleCI/contents/{+path}","compare_url":"https://api.github.com/repos/StyleCI/StyleCI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StyleCI/StyleCI/merges","archive_url":"https://api.github.com/repos/StyleCI/StyleCI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StyleCI/StyleCI/downloads","issues_url":"https://api.github.com/repos/StyleCI/StyleCI/issues{/number}","pulls_url":"https://api.github.com/repos/StyleCI/StyleCI/pulls{/number}","milestones_url":"https://api.github.com/repos/StyleCI/StyleCI/milestones{/number}","notifications_url":"https://api.github.com/repos/StyleCI/StyleCI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StyleCI/StyleCI/labels{/name}","releases_url":"https://api.github.com/repos/StyleCI/StyleCI/releases{/id}","created_at":"2014-11-20T20:06:19Z","updated_at":"2015-02-17T11:59:06Z","pushed_at":"2015-02-17T11:59:06Z","git_url":"git://github.com/StyleCI/StyleCI.git","ssh_url":"git@github.com:StyleCI/StyleCI.git","clone_url":"https://github.com/StyleCI/StyleCI.git","svn_url":"https://github.com/StyleCI/StyleCI","homepage":"https://styleci.io/","size":4240,"stargazers_count":26,"watchers_count":26,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":17,"forks":7,"open_issues":17,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/139"},"html":{"href":"https://github.com/StyleCI/StyleCI/pull/139"},"issue":{"href":"https://api.github.com/repos/StyleCI/StyleCI/issues/139"},"comments":{"href":"https://api.github.com/repos/StyleCI/StyleCI/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/StyleCI/StyleCI/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/StyleCI/StyleCI/statuses/480fc0d36a555083065f109b219f8e7a0b32c78d"}}}}