Merge d6e76bfbb8
into 64b0f60368
This commit is contained in:
commit
43d393c346
|
@ -116,8 +116,11 @@ class WebhookController extends \b8\Controller
|
|||
foreach ($payload['push']['changes'] as $commit) {
|
||||
try {
|
||||
$email = $commit['new']['target']['author']['raw'];
|
||||
if (strpos($email, '>') !== false) {
|
||||
// In order not to loose email if it is RAW, w/o "<>" symbols
|
||||
$email = substr($email, 0, strpos($email, '>'));
|
||||
$email = substr($email, strpos($email, '<') + 1);
|
||||
}
|
||||
|
||||
$results[$commit['new']['target']['hash']] = $this->createBuild(
|
||||
$project,
|
||||
|
|
Loading…
Reference in a new issue