Move bitbucket webhook to an external plugin

This commit is contained in:
Frederic Guillot
2016-01-07 20:16:05 -05:00
parent 1ef6e6c2bf
commit 54b3cfe8a1
45 changed files with 2 additions and 2388 deletions

View File

@@ -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';
}
}