Various bug fixes
This commit is contained in:
parent
0adaf0c400
commit
b47dfbd0b3
15 changed files with 82 additions and 43 deletions
|
|
@ -41,6 +41,11 @@ class GithubController extends \PHPCI\Controller
|
|||
$build->setLog('');
|
||||
$build->setCreated(new \DateTime());
|
||||
$build->setBranch(str_replace('refs/heads/', '', $payload['ref']));
|
||||
|
||||
if (!empty($payload['pusher']['email'])) {
|
||||
$build->setCommitterEmail($payload['pusher']['email']);
|
||||
}
|
||||
|
||||
} catch (\Exception $ex) {
|
||||
header('HTTP/1.1 400 Bad Request');
|
||||
header('Ex: ' . $ex->getMessage());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue