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

@@ -265,9 +265,12 @@ abstract class Base extends \Kanboard\Core\Base
* @param string $event
* @param string $description
*/
public function addEvent($event, $description)
public function addEvent($event, $description = '')
{
$this->eventManager->register($event, $description);
if ($description !== '') {
$this->eventManager->register($event, $description);
}
$this->compatibleEvents[] = $event;
return $this;
}