From 33f9cdbc976e0f97c3dd24658dc7d0097497c6d7 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 28 Sep 2014 18:23:21 -0400 Subject: Add support for Github Issue Webhooks --- app/Action/TaskAssignUser.php | 81 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 app/Action/TaskAssignUser.php (limited to 'app/Action/TaskAssignUser.php') diff --git a/app/Action/TaskAssignUser.php b/app/Action/TaskAssignUser.php new file mode 100644 index 00000000..29ea91e6 --- /dev/null +++ b/app/Action/TaskAssignUser.php @@ -0,0 +1,81 @@ + $data['task_id'], + 'owner_id' => $data['owner_id'], + ); + + return $this->task->update($values, false); + } + + /** + * Check if the event data meet the action condition + * + * @access public + * @param array $data Event data dictionary + * @return bool + */ + public function hasRequiredCondition(array $data) + { + return true; + } +} -- cgit v1.2.3