From 00e5a4c5b40610ec849567d30f88e3ab8d0720fb Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 6 Jan 2016 21:46:31 -0500 Subject: Move Github Webhook to external plugin See: https://github.com/kanboard/plugin-github-webhook --- 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 a7e9bde4..82e9d635 100644 --- a/app/Controller/Webhook.php +++ b/app/Controller/Webhook.php @@ -40,25 +40,6 @@ class Webhook extends Base $this->response->text('FAILED'); } - /** - * Handle Github webhooks - * - * @access public - */ - public function github() - { - $this->checkWebhookToken(); - - $this->githubWebhook->setProjectId($this->request->getIntegerParam('project_id')); - - $result = $this->githubWebhook->parsePayload( - $this->request->getHeader('X-Github-Event'), - $this->request->getJson() - ); - - echo $result ? 'PARSED' : 'IGNORED'; - } - /** * Handle Gitlab webhooks * -- cgit v1.2.3