diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-25 18:13:13 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-25 18:13:13 -0400 |
commit | c4e6d658e4099bd8152c77a76f486809693205f5 (patch) | |
tree | 3f40b34076fe62843023877e463c8538f2339053 /app/Controller/Webhook.php | |
parent | 7af67934cf67d40e1471b519ecdf06343203c6f6 (diff) |
Finish github webhooks integration
Diffstat (limited to 'app/Controller/Webhook.php')
-rw-r--r-- | app/Controller/Webhook.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/Controller/Webhook.php b/app/Controller/Webhook.php index 71acab08..fa9c5834 100644 --- a/app/Controller/Webhook.php +++ b/app/Controller/Webhook.php @@ -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'; } } |