Refactored push and tag webhooks for Github (Fixes).

This commit is contained in:
Dmitry Khomutov 2017-04-20 20:38:02 +07:00
commit 0e83599b9f
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
2 changed files with 11 additions and 6 deletions

View file

@ -513,7 +513,7 @@ class WebhookController extends Controller
}
// Check if a build already exists for this commit ID:
$builds = $this->buildStore->getByProjectAndCommit($project->getId(), $commitId);
$builds = $this->buildStore->getByProjectAndCommit($project->getId(), $commitId, $branch);
$ignore_environments = [];
if ($builds['count']) {