summaryrefslogtreecommitdiff
path: root/app/Model/Action.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-28 22:22:15 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-28 22:22:15 -0500
commit5266b821446b14b79a3c5a5c77c57791b985f0a9 (patch)
treedf0719492193e0ba842430edbbab8cd02775fbc5 /app/Model/Action.php
parentd6530bd55fdd863f0cf153bc2854fb4e34076316 (diff)
Add Gitlab webhook
Diffstat (limited to 'app/Model/Action.php')
-rw-r--r--app/Model/Action.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Model/Action.php b/app/Model/Action.php
index 36e0aa62..905b8914 100644
--- a/app/Model/Action.php
+++ b/app/Model/Action.php
@@ -2,6 +2,8 @@
namespace Model;
+use Integration\GitlabWebhook;
+use Integration\GithubWebhook;
use SimpleValidator\Validator;
use SimpleValidator\Validators;
@@ -79,6 +81,9 @@ class Action extends Base
GithubWebhook::EVENT_ISSUE_ASSIGNEE_CHANGE => t('Github issue assignee change'),
GithubWebhook::EVENT_ISSUE_LABEL_CHANGE => t('Github issue label change'),
GithubWebhook::EVENT_ISSUE_COMMENT => t('Github issue comment created'),
+ GitlabWebhook::EVENT_COMMIT => t('Gitlab commit received'),
+ GitlabWebhook::EVENT_ISSUE_OPENED => t('Gitlab issue opened'),
+ GitlabWebhook::EVENT_ISSUE_CLOSED => t('Gitlab issue closed'),
);
asort($values);