From 54b3cfe8a14e99ab2372fc5095facc3a2259f077 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 7 Jan 2016 20:16:05 -0500 Subject: Move bitbucket webhook to an external plugin --- app/Controller/Webhook.php | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'app/Controller/Webhook.php') diff --git a/app/Controller/Webhook.php b/app/Controller/Webhook.php index 82e9d635..be8bf030 100644 --- a/app/Controller/Webhook.php +++ b/app/Controller/Webhook.php @@ -54,23 +54,4 @@ class Webhook extends Base echo $result ? 'PARSED' : 'IGNORED'; } - - /** - * Handle Bitbucket webhooks - * - * @access public - */ - public function bitbucket() - { - $this->checkWebhookToken(); - - $this->bitbucketWebhook->setProjectId($this->request->getIntegerParam('project_id')); - - $result = $this->bitbucketWebhook->parsePayload( - $this->request->getHeader('X-Event-Key'), - $this->request->getJson() - ); - - echo $result ? 'PARSED' : 'IGNORED'; - } } -- cgit v1.2.3