Move Gitlab webhook to an external plugin

This commit is contained in:
Frederic Guillot
2016-01-07 21:05:23 -05:00
parent 54b3cfe8a1
commit 7864685cfd
41 changed files with 33 additions and 1042 deletions

View File

@@ -39,19 +39,4 @@ class Webhook extends Base
$this->response->text('FAILED');
}
/**
* Handle Gitlab webhooks
*
* @access public
*/
public function gitlab()
{
$this->checkWebhookToken();
$this->gitlabWebhook->setProjectId($this->request->getIntegerParam('project_id'));
$result = $this->gitlabWebhook->parsePayload($this->request->getJson());
echo $result ? 'PARSED' : 'IGNORED';
}
}