Fixing pull request builds.

This commit is contained in:
Dan Cryer 2015-03-11 07:48:22 +00:00
parent 5f2de9a679
commit ecc92b5f3e

View file

@ -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;
}