summaryrefslogtreecommitdiff
path: root/app/EventBuilder
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2019-02-12 20:24:48 -0800
committerFrédéric Guillot <fred@kanboard.net>2019-02-13 18:23:12 -0800
commitb1c5b47d841d5d3c03a904eb7398be84fc73a853 (patch)
treec5a4dcba9ad39b61181df2b444a0c7cfd462beb4 /app/EventBuilder
parent029538846181309e9135a17f893e874b2e90f72b (diff)
Add missing webhook event: task.move.project
Fixes #3969
Diffstat (limited to 'app/EventBuilder')
-rw-r--r--app/EventBuilder/TaskEventBuilder.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/EventBuilder/TaskEventBuilder.php b/app/EventBuilder/TaskEventBuilder.php
index aa897632..f0191be1 100644
--- a/app/EventBuilder/TaskEventBuilder.php
+++ b/app/EventBuilder/TaskEventBuilder.php
@@ -150,6 +150,14 @@ class TaskEventBuilder extends BaseEventBuilder
return e('%s closed the task #%d', $author, $eventData['task']['id']);
case TaskModel::EVENT_OPEN:
return e('%s opened the task #%d', $author, $eventData['task']['id']);
+ case TaskModel::EVENT_MOVE_PROJECT:
+ return e(
+ '%s moved the task #%d "%s" to the project "%s"',
+ $author,
+ $eventData['task']['id'],
+ $eventData['task']['title'],
+ $eventData['task']['project_name']
+ );
case TaskModel::EVENT_MOVE_COLUMN:
return e(
'%s moved the task #%d to the column "%s"',
@@ -203,6 +211,8 @@ class TaskEventBuilder extends BaseEventBuilder
return e('Task #%d closed', $eventData['task']['id']);
case TaskModel::EVENT_OPEN:
return e('Task #%d opened', $eventData['task']['id']);
+ case TaskModel::EVENT_MOVE_PROJECT:
+ return e('Task #%d "%s" has been moved to the project "%s"', $eventData['task']['id'], $eventData['task']['title'], $eventData['task']['project_name']);
case TaskModel::EVENT_MOVE_COLUMN:
return e('Column changed for task #%d', $eventData['task']['id']);
case TaskModel::EVENT_MOVE_POSITION: