From 51d77786deae14cfa4a7afbf3b097424db8e187b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 19 Jan 2015 21:02:01 -0500 Subject: Fix Gitlab webhook issue --- app/Integration/GitlabWebhook.php | 6 +++--- 1 file 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']); } -- cgit v1.2.3