{"action":"created","comment":{"url":"https://api.github.com/repos/carsonbot/carsonbot/pulls/comments/48450341","id":48450341,"diff_hunk":"@@ -18,8 +18,18 @@ public function githubAction(Request $request)\n     {\n         $data = json_decode($request->getContent(), true);\n         if ($data === null) {\n-            throw new \\Exception('Invalid JSON body!');\n+            return new JsonResponse('Invalid JSON body!', 400);\n         }\n+        if (!isset($data['repository']['full_name'])) {\n+            return new JsonResponse('Repository name not defined!', 400);\n+        }\n+\n+        list($owner, $name) = explode('/', $data['repository']['full_name']);\n+        $repository = $this->get('repository_provider')->getRepository($owner, $name);\n+        if ($repository === null) {","path":"src/AppBundle/Controller/WebhookController.php","position":13,"original_position":13,"commit_id":"f8d7563dae1131625f7cdf4b428be58dd2437907","original_commit_id":"f8d7563dae1131625f7cdf4b428be58dd2437907","user":{"login":"WouterJ","id":749025,"avatar_url":"https://avatars.githubusercontent.com/u/749025?v=3","gravatar_id":"","url":"https://api.github.com/users/WouterJ","html_url":"https://github.com/WouterJ","followers_url":"https://api.github.com/users/WouterJ/followers","following_url":"https://api.github.com/users/WouterJ/following{/other_user}","gists_url":"https://api.github.com/users/WouterJ/gists{/gist_id}","starred_url":"https://api.github.com/users/WouterJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WouterJ/subscriptions","organizations_url":"https://api.github.com/users/WouterJ/orgs","repos_url":"https://api.github.com/users/WouterJ/repos","events_url":"https://api.github.com/users/WouterJ/events{/privacy}","received_events_url":"https://api.github.com/users/WouterJ/received_events","type":"User","site_admin":false},"body":"Should be `null === $repository`","created_at":"2015-12-26T22:39:54Z","updated_at":"2015-12-26T22:39:54Z","html_url":"https://github.com/carsonbot/carsonbot/pull/23#discussion_r48450341","pull_request_url":"https://api.github.com/repos/carsonbot/carsonbot/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/carsonbot/carsonbot/pulls/comments/48450341"},"html":{"href":"https://github.com/carsonbot/carsonbot/pull/23#discussion_r48450341"},"pull_request":{"href":"https://api.github.com/repos/carsonbot/carsonbot/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/carsonbot/carsonbot/pulls/23","id":53845930,"html_url":"https://github.com/carsonbot/carsonbot/pull/23","diff_url":"https://github.com/carsonbot/carsonbot/pull/23.diff","patch_url":"https://github.com/carsonbot/carsonbot/pull/23.patch","issue_url":"https://api.github.com/repos/carsonbot/carsonbot/issues/23","number":23,"state":"open","locked":false,"title":"Allow to manage several repositories at the same time","user":{"login":"Ener-Getick","id":6871899,"avatar_url":"https://avatars.githubusercontent.com/u/6871899?v=3","gravatar_id":"","url":"https://api.github.com/users/Ener-Getick","html_url":"https://github.com/Ener-Getick","followers_url":"https://api.github.com/users/Ener-Getick/followers","following_url":"https://api.github.com/users/Ener-Getick/following{/other_user}","gists_url":"https://api.github.com/users/Ener-Getick/gists{/gist_id}","starred_url":"https://api.github.com/users/Ener-Getick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ener-Getick/subscriptions","organizations_url":"https://api.github.com/users/Ener-Getick/orgs","repos_url":"https://api.github.com/users/Ener-Getick/repos","events_url":"https://api.github.com/users/Ener-Getick/events{/privacy}","received_events_url":"https://api.github.com/users/Ener-Getick/received_events","type":"User","site_admin":false},"body":"This PR includes #22 and adds support for multiple repositories.","created_at":"2015-12-16T14:14:21Z","updated_at":"2015-12-26T22:39:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c411cb21bd1bcc31e8ea10e3be6192fddcacee00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/carsonbot/carsonbot/pulls/23/commits","review_comments_url":"https://api.github.com/repos/carsonbot/carsonbot/pulls/23/comments","review_comment_url":"https://api.github.com/repos/carsonbot/carsonbot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/carsonbot/carsonbot/issues/23/comments","statuses_url":"https://api.github.com/repos/carsonbot/carsonbot/statuses/f8d7563dae1131625f7cdf4b428be58dd2437907","head":{"label":"Ener-Getick:REPOSITORIES","ref":"REPOSITORIES","sha":"f8d7563dae1131625f7cdf4b428be58dd2437907","user":{"login":"Ener-Getick","id":6871899,"avatar_url":"https://avatars.githubusercontent.com/u/6871899?v=3","gravatar_id":"","url":"https://api.github.com/users/Ener-Getick","html_url":"https://github.com/Ener-Getick","followers_url":"https://api.github.com/users/Ener-Getick/followers","following_url":"https://api.github.com/users/Ener-Getick/following{/other_user}","gists_url":"https://api.github.com/users/Ener-Getick/gists{/gist_id}","starred_url":"https://api.github.com/users/Ener-Getick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ener-Getick/subscriptions","organizations_url":"https://api.github.com/users/Ener-Getick/orgs","repos_url":"https://api.github.com/users/Ener-Getick/repos","events_url":"https://api.github.com/users/Ener-Getick/events{/privacy}","received_events_url":"https://api.github.com/users/Ener-Getick/received_events","type":"User","site_admin":false},"repo":{"id":47883647,"name":"carsonbot","full_name":"Ener-Getick/carsonbot","owner":{"login":"Ener-Getick","id":6871899,"avatar_url":"https://avatars.githubusercontent.com/u/6871899?v=3","gravatar_id":"","url":"https://api.github.com/users/Ener-Getick","html_url":"https://github.com/Ener-Getick","followers_url":"https://api.github.com/users/Ener-Getick/followers","following_url":"https://api.github.com/users/Ener-Getick/following{/other_user}","gists_url":"https://api.github.com/users/Ener-Getick/gists{/gist_id}","starred_url":"https://api.github.com/users/Ener-Getick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ener-Getick/subscriptions","organizations_url":"https://api.github.com/users/Ener-Getick/orgs","repos_url":"https://api.github.com/users/Ener-Getick/repos","events_url":"https://api.github.com/users/Ener-Getick/events{/privacy}","received_events_url":"https://api.github.com/users/Ener-Getick/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ener-Getick/carsonbot","description":"Issue Bot used on symfony/symfony","fork":true,"url":"https://api.github.com/repos/Ener-Getick/carsonbot","forks_url":"https://api.github.com/repos/Ener-Getick/carsonbot/forks","keys_url":"https://api.github.com/repos/Ener-Getick/carsonbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ener-Getick/carsonbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ener-Getick/carsonbot/teams","hooks_url":"https://api.github.com/repos/Ener-Getick/carsonbot/hooks","issue_events_url":"https://api.github.com/repos/Ener-Getick/carsonbot/issues/events{/number}","events_url":"https://api.github.com/repos/Ener-Getick/carsonbot/events","assignees_url":"https://api.github.com/repos/Ener-Getick/carsonbot/assignees{/user}","branches_url":"https://api.github.com/repos/Ener-Getick/carsonbot/branches{/branch}","tags_url":"https://api.github.com/repos/Ener-Getick/carsonbot/tags","blobs_url":"https://api.github.com/repos/Ener-Getick/carsonbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ener-Getick/carsonbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ener-Getick/carsonbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ener-Getick/carsonbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ener-Getick/carsonbot/statuses/{sha}","languages_url":"https://api.github.com/repos/Ener-Getick/carsonbot/languages","stargazers_url":"https://api.github.com/repos/Ener-Getick/carsonbot/stargazers","contributors_url":"https://api.github.com/repos/Ener-Getick/carsonbot/contributors","subscribers_url":"https://api.github.com/repos/Ener-Getick/carsonbot/subscribers","subscription_url":"https://api.github.com/repos/Ener-Getick/carsonbot/subscription","commits_url":"https://api.github.com/repos/Ener-Getick/carsonbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ener-Getick/carsonbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ener-Getick/carsonbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ener-Getick/carsonbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ener-Getick/carsonbot/contents/{+path}","compare_url":"https://api.github.com/repos/Ener-Getick/carsonbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ener-Getick/carsonbot/merges","archive_url":"https://api.github.com/repos/Ener-Getick/carsonbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ener-Getick/carsonbot/downloads","issues_url":"https://api.github.com/repos/Ener-Getick/carsonbot/issues{/number}","pulls_url":"https://api.github.com/repos/Ener-Getick/carsonbot/pulls{/number}","milestones_url":"https://api.github.com/repos/Ener-Getick/carsonbot/milestones{/number}","notifications_url":"https://api.github.com/repos/Ener-Getick/carsonbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ener-Getick/carsonbot/labels{/name}","releases_url":"https://api.github.com/repos/Ener-Getick/carsonbot/releases{/id}","created_at":"2015-12-12T15:37:56Z","updated_at":"2015-12-16T12:25:04Z","pushed_at":"2015-12-17T17:21:05Z","git_url":"git://github.com/Ener-Getick/carsonbot.git","ssh_url":"git@github.com:Ener-Getick/carsonbot.git","clone_url":"https://github.com/Ener-Getick/carsonbot.git","svn_url":"https://github.com/Ener-Getick/carsonbot","homepage":"","size":87,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"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":"carsonbot:master","ref":"master","sha":"42e9db4878f6cd561181950bad0a3389016714a8","user":{"login":"carsonbot","id":13338611,"avatar_url":"https://avatars.githubusercontent.com/u/13338611?v=3","gravatar_id":"","url":"https://api.github.com/users/carsonbot","html_url":"https://github.com/carsonbot","followers_url":"https://api.github.com/users/carsonbot/followers","following_url":"https://api.github.com/users/carsonbot/following{/other_user}","gists_url":"https://api.github.com/users/carsonbot/gists{/gist_id}","starred_url":"https://api.github.com/users/carsonbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carsonbot/subscriptions","organizations_url":"https://api.github.com/users/carsonbot/orgs","repos_url":"https://api.github.com/users/carsonbot/repos","events_url":"https://api.github.com/users/carsonbot/events{/privacy}","received_events_url":"https://api.github.com/users/carsonbot/received_events","type":"User","site_admin":false},"repo":{"id":38202727,"name":"carsonbot","full_name":"carsonbot/carsonbot","owner":{"login":"carsonbot","id":13338611,"avatar_url":"https://avatars.githubusercontent.com/u/13338611?v=3","gravatar_id":"","url":"https://api.github.com/users/carsonbot","html_url":"https://github.com/carsonbot","followers_url":"https://api.github.com/users/carsonbot/followers","following_url":"https://api.github.com/users/carsonbot/following{/other_user}","gists_url":"https://api.github.com/users/carsonbot/gists{/gist_id}","starred_url":"https://api.github.com/users/carsonbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carsonbot/subscriptions","organizations_url":"https://api.github.com/users/carsonbot/orgs","repos_url":"https://api.github.com/users/carsonbot/repos","events_url":"https://api.github.com/users/carsonbot/events{/privacy}","received_events_url":"https://api.github.com/users/carsonbot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carsonbot/carsonbot","description":"Issue Bot used on symfony/symfony","fork":false,"url":"https://api.github.com/repos/carsonbot/carsonbot","forks_url":"https://api.github.com/repos/carsonbot/carsonbot/forks","keys_url":"https://api.github.com/repos/carsonbot/carsonbot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carsonbot/carsonbot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carsonbot/carsonbot/teams","hooks_url":"https://api.github.com/repos/carsonbot/carsonbot/hooks","issue_events_url":"https://api.github.com/repos/carsonbot/carsonbot/issues/events{/number}","events_url":"https://api.github.com/repos/carsonbot/carsonbot/events","assignees_url":"https://api.github.com/repos/carsonbot/carsonbot/assignees{/user}","branches_url":"https://api.github.com/repos/carsonbot/carsonbot/branches{/branch}","tags_url":"https://api.github.com/repos/carsonbot/carsonbot/tags","blobs_url":"https://api.github.com/repos/carsonbot/carsonbot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carsonbot/carsonbot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carsonbot/carsonbot/git/refs{/sha}","trees_url":"https://api.github.com/repos/carsonbot/carsonbot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carsonbot/carsonbot/statuses/{sha}","languages_url":"https://api.github.com/repos/carsonbot/carsonbot/languages","stargazers_url":"https://api.github.com/repos/carsonbot/carsonbot/stargazers","contributors_url":"https://api.github.com/repos/carsonbot/carsonbot/contributors","subscribers_url":"https://api.github.com/repos/carsonbot/carsonbot/subscribers","subscription_url":"https://api.github.com/repos/carsonbot/carsonbot/subscription","commits_url":"https://api.github.com/repos/carsonbot/carsonbot/commits{/sha}","git_commits_url":"https://api.github.com/repos/carsonbot/carsonbot/git/commits{/sha}","comments_url":"https://api.github.com/repos/carsonbot/carsonbot/comments{/number}","issue_comment_url":"https://api.github.com/repos/carsonbot/carsonbot/issues/comments{/number}","contents_url":"https://api.github.com/repos/carsonbot/carsonbot/contents/{+path}","compare_url":"https://api.github.com/repos/carsonbot/carsonbot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carsonbot/carsonbot/merges","archive_url":"https://api.github.com/repos/carsonbot/carsonbot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carsonbot/carsonbot/downloads","issues_url":"https://api.github.com/repos/carsonbot/carsonbot/issues{/number}","pulls_url":"https://api.github.com/repos/carsonbot/carsonbot/pulls{/number}","milestones_url":"https://api.github.com/repos/carsonbot/carsonbot/milestones{/number}","notifications_url":"https://api.github.com/repos/carsonbot/carsonbot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carsonbot/carsonbot/labels{/name}","releases_url":"https://api.github.com/repos/carsonbot/carsonbot/releases{/id}","created_at":"2015-06-28T14:57:35Z","updated_at":"2015-12-16T15:36:36Z","pushed_at":"2015-12-17T17:21:06Z","git_url":"git://github.com/carsonbot/carsonbot.git","ssh_url":"git@github.com:carsonbot/carsonbot.git","clone_url":"https://github.com/carsonbot/carsonbot.git","svn_url":"https://github.com/carsonbot/carsonbot","homepage":"","size":86,"stargazers_count":35,"watchers_count":35,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":13,"forks":7,"open_issues":13,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/carsonbot/carsonbot/pulls/23"},"html":{"href":"https://github.com/carsonbot/carsonbot/pull/23"},"issue":{"href":"https://api.github.com/repos/carsonbot/carsonbot/issues/23"},"comments":{"href":"https://api.github.com/repos/carsonbot/carsonbot/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/carsonbot/carsonbot/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/carsonbot/carsonbot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/carsonbot/carsonbot/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/carsonbot/carsonbot/statuses/f8d7563dae1131625f7cdf4b428be58dd2437907"}}}}