File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -586,6 +586,7 @@ public function getEvent(string $event, string $payload): array
586586 switch ($ event ) {
587587 case 'push ' :
588588 $ branchCreated = isset ($ payload ['created ' ]) ? $ payload ['created ' ] : false ;
589+ $ branchDeleted = isset ($ payload ['deleted ' ]) ? $ payload ['deleted ' ] : false ;
589590 $ ref = $ payload ['ref ' ] ?? '' ;
590591 $ repositoryId = strval ($ payload ['repository ' ]['id ' ] ?? '' );
591592 $ repositoryName = $ payload ['repository ' ]['name ' ] ?? '' ;
@@ -602,6 +603,7 @@ public function getEvent(string $event, string $payload): array
602603
603604 return [
604605 'branchCreated ' => $ branchCreated ,
606+ 'branchDeleted ' => $ branchDeleted ,
605607 'branch ' => $ branch ,
606608 'branchUrl ' => $ branchUrl ,
607609 'repositoryId ' => $ repositoryId ,
You can’t perform that action at this time.
0 commit comments