diff options
-rw-r--r-- | app/Integration/GitlabWebhook.php | 6 |
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']); } |