Fix Gitlab webhook issue

This commit is contained in:
Frederic Guillot 2015-01-19 21:02:01 -05:00
parent 2bdd6a6b35
commit 51d77786de
1 changed files with 3 additions and 3 deletions

View File

@ -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']);
}