Move Github Webhook to external plugin
See: https://github.com/kanboard/plugin-github-webhook
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user