Updating Bitbucket to match Github and Gitlab in regards to building all payload commits instead of one per branch
This commit is contained in:
parent
a0cfd64709
commit
e888032bdf
1 changed files with 0 additions and 7 deletions
|
|
@ -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, '>'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue