Fixing pull request builds.
This commit is contained in:
parent
5f2de9a679
commit
ecc92b5f3e
|
@ -233,7 +233,7 @@ class WebhookController extends \PHPCI\Controller
|
|||
|
||||
foreach ($response['body'] as $commit) {
|
||||
// Skip all but the current HEAD commit ID:
|
||||
if ($commit['sha'] != $payload['head']['sha']) {
|
||||
if ($commit['sha'] != $payload['pull_request']['head']['sha']) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue