From e888032bdf7ae6ef26a60607eb75de0f81cb76bd Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Tue, 25 Feb 2014 16:24:51 +0000 Subject: [PATCH] Updating Bitbucket to match Github and Gitlab in regards to building all payload commits instead of one per branch --- PHPCI/Controller/WebhookController.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/PHPCI/Controller/WebhookController.php b/PHPCI/Controller/WebhookController.php index c424fd24..c8761e87 100644 --- a/PHPCI/Controller/WebhookController.php +++ b/PHPCI/Controller/WebhookController.php @@ -39,15 +39,8 @@ class WebhookController extends \PHPCI\Controller public function bitbucket($project) { $payload = json_decode($this->getParam('payload'), true); - $commits = array(); foreach ($payload['commits'] as $commit) { - if (!in_array($commit['branch'], array_keys($commits))) { - $commits[$commit['branch']] = $commit; - } - } - - foreach ($commits as $commit) { try { $email = $commit['raw_author']; $email = substr($email, 0, strpos($email, '>'));