Finish github webhooks integration
This commit is contained in:
@@ -55,9 +55,11 @@ class Webhook extends Base
|
||||
|
||||
$this->githubWebhook->setProjectId($this->request->getIntegerParam('project_id'));
|
||||
|
||||
$this->githubWebhook->parsePayload(
|
||||
$result = $this->githubWebhook->parsePayload(
|
||||
$this->request->getHeader('X-Github-Event'),
|
||||
$this->request->getBody()
|
||||
);
|
||||
|
||||
echo $result ? 'PARSED' : 'IGNORED';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user