summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-07 20:16:05 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-07 20:16:05 -0500
commit54b3cfe8a14e99ab2372fc5095facc3a2259f077 (patch)
tree3af8286c3bead5ff0a50895b9298a30dc9742b8e /app/Controller
parent1ef6e6c2bf39234993b825d4b974301470c49e83 (diff)
Move bitbucket webhook to an external plugin
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Webhook.php19
1 files changed, 0 insertions, 19 deletions
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';
- }
}