Move Github Webhook to external plugin

See: https://github.com/kanboard/plugin-github-webhook
This commit is contained in:
Frederic Guillot
2016-01-06 21:46:31 -05:00
parent a03e4d4dcb
commit 00e5a4c5b4
47 changed files with 10 additions and 2698 deletions

View File

@@ -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
*