diff options
Diffstat (limited to 'app/Action/TaskClose.php')
-rw-r--r-- | app/Action/TaskClose.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Action/TaskClose.php b/app/Action/TaskClose.php index da0744d0..f71d4b0e 100644 --- a/app/Action/TaskClose.php +++ b/app/Action/TaskClose.php @@ -24,6 +24,7 @@ class TaskClose extends Base return array( Task::EVENT_MOVE_COLUMN, GithubWebhook::EVENT_COMMIT, + GithubWebhook::EVENT_ISSUE_CLOSED, ); } @@ -37,6 +38,7 @@ class TaskClose extends Base { switch ($this->event_name) { case GithubWebhook::EVENT_COMMIT: + case GithubWebhook::EVENT_ISSUE_CLOSED: return array(); default: return array('column_id' => t('Column')); @@ -53,6 +55,7 @@ class TaskClose extends Base { switch ($this->event_name) { case GithubWebhook::EVENT_COMMIT: + case GithubWebhook::EVENT_ISSUE_CLOSED: return array('task_id'); default: return array('task_id', 'column_id'); @@ -82,6 +85,7 @@ class TaskClose extends Base { switch ($this->event_name) { case GithubWebhook::EVENT_COMMIT: + case GithubWebhook::EVENT_ISSUE_CLOSED: return true; default: return $data['column_id'] == $this->getParam('column_id'); |