summaryrefslogtreecommitdiff
path: root/app/Action/TaskClose.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-08 21:13:59 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-08 21:13:59 -0500
commit6f94ce6af3072543ee62d64016931ed424f800a7 (patch)
tree348d250d786dba40c14828cef3fb347116a0fa1a /app/Action/TaskClose.php
parent02f7c8d33d60b41f5c2a5335f9f6ee56f236a7fe (diff)
Add Bitbucket webhook
Diffstat (limited to 'app/Action/TaskClose.php')
-rw-r--r--app/Action/TaskClose.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Action/TaskClose.php b/app/Action/TaskClose.php
index 760dfd84..b7cd4dbf 100644
--- a/app/Action/TaskClose.php
+++ b/app/Action/TaskClose.php
@@ -4,6 +4,7 @@ namespace Action;
use Integration\GitlabWebhook;
use Integration\GithubWebhook;
+use Integration\BitbucketWebhook;
use Model\Task;
/**
@@ -28,6 +29,7 @@ class TaskClose extends Base
GithubWebhook::EVENT_ISSUE_CLOSED,
GitlabWebhook::EVENT_COMMIT,
GitlabWebhook::EVENT_ISSUE_CLOSED,
+ BitbucketWebhook::EVENT_COMMIT,
);
}
@@ -44,6 +46,7 @@ class TaskClose extends Base
case GithubWebhook::EVENT_ISSUE_CLOSED:
case GitlabWebhook::EVENT_COMMIT:
case GitlabWebhook::EVENT_ISSUE_CLOSED:
+ case BitbucketWebhook::EVENT_COMMIT:
return array();
default:
return array('column_id' => t('Column'));
@@ -63,6 +66,7 @@ class TaskClose extends Base
case GithubWebhook::EVENT_ISSUE_CLOSED:
case GitlabWebhook::EVENT_COMMIT:
case GitlabWebhook::EVENT_ISSUE_CLOSED:
+ case BitbucketWebhook::EVENT_COMMIT:
return array('task_id');
default:
return array('task_id', 'column_id');
@@ -95,6 +99,7 @@ class TaskClose extends Base
case GithubWebhook::EVENT_ISSUE_CLOSED:
case GitlabWebhook::EVENT_COMMIT:
case GitlabWebhook::EVENT_ISSUE_CLOSED:
+ case BitbucketWebhook::EVENT_COMMIT:
return true;
default:
return $data['column_id'] == $this->getParam('column_id');