From 7864685cfdb64d2ef6497a445f0d8ed96762e4bf Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 7 Jan 2016 21:05:23 -0500 Subject: Move Gitlab webhook to an external plugin --- app/Controller/Webhook.php | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'app/Controller/Webhook.php') diff --git a/app/Controller/Webhook.php b/app/Controller/Webhook.php index be8bf030..0eafe3e5 100644 --- a/app/Controller/Webhook.php +++ b/app/Controller/Webhook.php @@ -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'; - } } -- cgit v1.2.3