{"action":"created","issue":{"url":"https://api.github.com/repos/simpspector/simpspector/issues/176","repository_url":"https://api.github.com/repos/simpspector/simpspector","labels_url":"https://api.github.com/repos/simpspector/simpspector/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/simpspector/simpspector/issues/176/comments","events_url":"https://api.github.com/repos/simpspector/simpspector/issues/176/events","html_url":"https://github.com/simpspector/simpspector/issues/176","id":143025426,"number":176,"title":"github tag event caused an exception","user":{"login":"DavidBadura","id":470138,"avatar_url":"https://avatars.githubusercontent.com/u/470138?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBadura","html_url":"https://github.com/DavidBadura","followers_url":"https://api.github.com/users/DavidBadura/followers","following_url":"https://api.github.com/users/DavidBadura/following{/other_user}","gists_url":"https://api.github.com/users/DavidBadura/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBadura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBadura/subscriptions","organizations_url":"https://api.github.com/users/DavidBadura/orgs","repos_url":"https://api.github.com/users/DavidBadura/repos","events_url":"https://api.github.com/users/DavidBadura/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBadura/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simpspector/simpspector/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T17:23:32Z","updated_at":"2016-03-23T19:04:24Z","closed_at":"2016-03-23T19:04:24Z","body":"Payload:\r\n```json\r\n{\r\n  \"ref\": \"refs/tags/1.0.0\",\r\n  \"before\": \"0000000000000000000000000000000000000000\",\r\n  \"after\": \"2369d7350360b5234ea5d581b7e8375e6d58b4c2\",\r\n  \"created\": true,\r\n  \"deleted\": false,\r\n  \"forced\": true,\r\n  \"base_ref\": \"refs/heads/master\",\r\n  \"compare\": \"https://github.com/DavidBadura/git-webhooks/compare/1.0.0\",\r\n  \"commits\": [\r\n\r\n  ],\r\n  \"head_commit\": {\r\n    \"id\": \"2369d7350360b5234ea5d581b7e8375e6d58b4c2\",\r\n    \"distinct\": true,\r\n    \"message\": \"update namespace extraction in github provider\",\r\n    \"timestamp\": \"2016-03-23T17:26:29+01:00\",\r\n    \"url\": \"https://github.com/DavidBadura/git-webhooks/commit/2369d7350360b5234ea5d581b7e8375e6d58b4c2\",\r\n    \"author\": {\r\n      \"name\": \"David Badura\",\r\n      \"email\": \"david.badura@i22.de\"\r\n    },\r\n    \"committer\": {\r\n      \"name\": \"David Badura\",\r\n      \"email\": \"david.badura@i22.de\"\r\n    },\r\n    \"added\": [\r\n\r\n    ],\r\n    \"removed\": [\r\n\r\n    ],\r\n    \"modified\": [\r\n      \"src/Provider/GithubProvider.php\"\r\n    ]\r\n  },\r\n  \"repository\": {\r\n    \"id\": 37823725,\r\n    \"name\": \"git-webhooks\",\r\n    \"full_name\": \"DavidBadura/git-webhooks\",\r\n    \"owner\": {\r\n      \"name\": \"DavidBadura\",\r\n      \"email\": \"d.badura@gmx.de\"\r\n    },\r\n    \"private\": false,\r\n    \"html_url\": \"https://github.com/DavidBadura/git-webhooks\",\r\n    \"description\": \"normalise webhook events for github, gitlab and (bitbucket)\",\r\n    \"fork\": false,\r\n    \"url\": \"https://github.com/DavidBadura/git-webhooks\",\r\n    \"forks_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/forks\",\r\n    \"keys_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/keys{/key_id}\",\r\n    \"collaborators_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/collaborators{/collaborator}\",\r\n    \"teams_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/teams\",\r\n    \"hooks_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/hooks\",\r\n    \"issue_events_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/issues/events{/number}\",\r\n    \"events_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/events\",\r\n    \"assignees_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/assignees{/user}\",\r\n    \"branches_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/branches{/branch}\",\r\n    \"tags_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/tags\",\r\n    \"blobs_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/git/blobs{/sha}\",\r\n    \"git_tags_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/git/tags{/sha}\",\r\n    \"git_refs_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/git/refs{/sha}\",\r\n    \"trees_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/git/trees{/sha}\",\r\n    \"statuses_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/statuses/{sha}\",\r\n    \"languages_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/languages\",\r\n    \"stargazers_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/stargazers\",\r\n    \"contributors_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/contributors\",\r\n    \"subscribers_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/subscribers\",\r\n    \"subscription_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/subscription\",\r\n    \"commits_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/commits{/sha}\",\r\n    \"git_commits_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/git/commits{/sha}\",\r\n    \"comments_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/comments{/number}\",\r\n    \"issue_comment_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/issues/comments{/number}\",\r\n    \"contents_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/contents/{+path}\",\r\n    \"compare_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/compare/{base}...{head}\",\r\n    \"merges_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/merges\",\r\n    \"archive_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/{archive_format}{/ref}\",\r\n    \"downloads_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/downloads\",\r\n    \"issues_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/issues{/number}\",\r\n    \"pulls_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/pulls{/number}\",\r\n    \"milestones_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/milestones{/number}\",\r\n    \"notifications_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/notifications{?since,all,participating}\",\r\n    \"labels_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/labels{/name}\",\r\n    \"releases_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/releases{/id}\",\r\n    \"deployments_url\": \"https://api.github.com/repos/DavidBadura/git-webhooks/deployments\",\r\n    \"created_at\": 1434916708,\r\n    \"updated_at\": \"2016-03-21T16:30:27Z\",\r\n    \"pushed_at\": 1458753206,\r\n    \"git_url\": \"git://github.com/DavidBadura/git-webhooks.git\",\r\n    \"ssh_url\": \"git@github.com:DavidBadura/git-webhooks.git\",\r\n    \"clone_url\": \"https://github.com/DavidBadura/git-webhooks.git\",\r\n    \"svn_url\": \"https://github.com/DavidBadura/git-webhooks\",\r\n    \"homepage\": \"\",\r\n    \"size\": 38,\r\n    \"stargazers_count\": 3,\r\n    \"watchers_count\": 3,\r\n    \"language\": \"PHP\",\r\n    \"has_issues\": true,\r\n    \"has_downloads\": true,\r\n    \"has_wiki\": true,\r\n    \"has_pages\": false,\r\n    \"forks_count\": 2,\r\n    \"mirror_url\": null,\r\n    \"open_issues_count\": 3,\r\n    \"forks\": 2,\r\n    \"open_issues\": 3,\r\n    \"watchers\": 3,\r\n    \"default_branch\": \"master\",\r\n    \"stargazers\": 3,\r\n    \"master_branch\": \"master\"\r\n  },\r\n  \"pusher\": {\r\n    \"name\": \"DavidBadura\",\r\n    \"email\": \"d.badura@gmx.de\"\r\n  },\r\n  \"sender\": {\r\n    \"login\": \"DavidBadura\",\r\n    \"id\": 470138,\r\n    \"avatar_url\": \"https://avatars.githubusercontent.com/u/470138?v=3\",\r\n    \"gravatar_id\": \"\",\r\n    \"url\": \"https://api.github.com/users/DavidBadura\",\r\n    \"html_url\": \"https://github.com/DavidBadura\",\r\n    \"followers_url\": \"https://api.github.com/users/DavidBadura/followers\",\r\n    \"following_url\": \"https://api.github.com/users/DavidBadura/following{/other_user}\",\r\n    \"gists_url\": \"https://api.github.com/users/DavidBadura/gists{/gist_id}\",\r\n    \"starred_url\": \"https://api.github.com/users/DavidBadura/starred{/owner}{/repo}\",\r\n    \"subscriptions_url\": \"https://api.github.com/users/DavidBadura/subscriptions\",\r\n    \"organizations_url\": \"https://api.github.com/users/DavidBadura/orgs\",\r\n    \"repos_url\": \"https://api.github.com/users/DavidBadura/repos\",\r\n    \"events_url\": \"https://api.github.com/users/DavidBadura/events{/privacy}\",\r\n    \"received_events_url\": \"https://api.github.com/users/DavidBadura/received_events\",\r\n    \"type\": \"User\",\r\n    \"site_admin\": false\r\n  }\r\n}\r\n```\r\n\r\nEvent-Object\r\n```\r\nobject(DavidBadura\\GitWebhooks\\Event\\PushEvent)#144 (10) {\r\n  [\"before\"]=>\r\n  string(40) \"0000000000000000000000000000000000000000\"\r\n  [\"after\"]=>\r\n  string(40) \"2369d7350360b5234ea5d581b7e8375e6d58b4c2\"\r\n  [\"ref\"]=>\r\n  string(15) \"refs/tags/1.0.0\"\r\n  [\"type\"]=>\r\n  string(3) \"tag\"\r\n  [\"branchName\"]=>\r\n  NULL\r\n  [\"tagName\"]=>\r\n  string(5) \"1.0.0\"\r\n  [\"repository\"]=>\r\n  object(DavidBadura\\GitWebhooks\\Struct\\Repository)#146 (6) {\r\n    [\"id\"]=>\r\n    int(37823725)\r\n    [\"name\"]=>\r\n    string(12) \"git-webhooks\"\r\n    [\"namespace\"]=>\r\n    string(11) \"DavidBadura\"\r\n    [\"description\"]=>\r\n    string(59) \"normalise webhook events for github, gitlab and (bitbucket)\"\r\n    [\"homepage\"]=>\r\n    string(0) \"\"\r\n    [\"url\"]=>\r\n    string(43) \"https://github.com/DavidBadura/git-webhooks\"\r\n  }\r\n  [\"commits\"]=>\r\n  array(0) {\r\n  }\r\n  [\"provider\"]=>\r\n  string(6) \"github\"\r\n  [\"user\"]=>\r\n  object(DavidBadura\\GitWebhooks\\Struct\\User)#145 (3) {\r\n    [\"id\"]=>\r\n    int(470138)\r\n    [\"name\"]=>\r\n    string(11) \"DavidBadura\"\r\n    [\"email\"]=>\r\n    string(15) \"d.badura@gmx.de\"\r\n  }\r\n}\r\n```\r\n\r\nLogs:\r\n```\r\n[2016-03-23 17:13:26] request.CRITICAL: Uncaught PHP Exception Symfony\\Component\\Debug\\Exception\\ContextErrorException: \"Catchable Fatal Error: Argument 3 passed to AppBundle\\WebhookHandler::commit() must be an instance of DavidBadura\\GitWebhooks\\Struct\\Commit, null given, called in /var/www/src/AppBundle/WebhookHandler.php on line 284 and defined\" at /var/www/src/AppBundle/WebhookHandler.php line 241 {\"exception\":\"[object] (Symfony\\\\Component\\\\Debug\\\\Exception\\\\ContextErrorException(code: 0): Catchable Fatal Error: Argument 3 passed to AppBundle\\\\WebhookHandler::commit() must be an instance of DavidBadura\\\\GitWebhooks\\\\Struct\\\\Commit, null given, called in /var/www/src/AppBundle/WebhookHandler.php on line 284 and defined at /var/www/src/AppBundle/WebhookHandler.php:241)\"} []\r\n```"},"comment":{"url":"https://api.github.com/repos/simpspector/simpspector/issues/comments/200498114","html_url":"https://github.com/simpspector/simpspector/issues/176#issuecomment-200498114","issue_url":"https://api.github.com/repos/simpspector/simpspector/issues/176","id":200498114,"user":{"login":"DavidBadura","id":470138,"avatar_url":"https://avatars.githubusercontent.com/u/470138?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBadura","html_url":"https://github.com/DavidBadura","followers_url":"https://api.github.com/users/DavidBadura/followers","following_url":"https://api.github.com/users/DavidBadura/following{/other_user}","gists_url":"https://api.github.com/users/DavidBadura/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBadura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBadura/subscriptions","organizations_url":"https://api.github.com/users/DavidBadura/orgs","repos_url":"https://api.github.com/users/DavidBadura/repos","events_url":"https://api.github.com/users/DavidBadura/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBadura/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T19:04:24Z","updated_at":"2016-03-23T19:04:24Z","body":"fixed in git-webhooks"}}