Skip to content
Snippets Groups Projects
Commit a9f0db82 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

re #53

parent f61f8f0c
Branches main
No related tags found
No related merge requests found
...@@ -40,7 +40,10 @@ final class HooksController extends EventController ...@@ -40,7 +40,10 @@ final class HooksController extends EventController
|| $payload['project']['id'] != $this->gitlab_project_id || $payload['project']['id'] != $this->gitlab_project_id
) { ) {
$this->set_status(500); $this->set_status(500);
$this->render_json($payload); $this->render_json([
'payload' => $payload['project']['id'] ?? 'NONE!',
'id' => $this->gitlab_project_id,
]);
return; return;
throw new Exception('This is not a valid gitlab event'); throw new Exception('This is not a valid gitlab event');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment