summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-01-19 21:02:01 -0500
committerFrederic Guillot <fred@kanboard.net>2015-01-19 21:02:01 -0500
commit51d77786deae14cfa4a7afbf3b097424db8e187b (patch)
tree5f22b178a1fc73a71eba052c621c5e25569592fc /app
parent2bdd6a6b35f391d8281e3217e1c31ed469381c3e (diff)
Fix Gitlab webhook issue
Diffstat (limited to 'app')
-rw-r--r--app/Integration/GitlabWebhook.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Integration/GitlabWebhook.php b/app/Integration/GitlabWebhook.php
index f5df32a6..e920f33d 100644
--- a/app/Integration/GitlabWebhook.php
+++ b/app/Integration/GitlabWebhook.php
@@ -148,10 +148,10 @@ class GitlabWebhook extends Base
*/
public function handleIssueEvent(array $payload)
{
- switch ($payload['object_attributes']['state']) {
- case 'opened':
+ switch ($payload['object_attributes']['action']) {
+ case 'open':
return $this->handleIssueOpened($payload['object_attributes']);
- case 'closed':
+ case 'close':
return $this->handleIssueClosed($payload['object_attributes']);
}