Refactored push and tag webhooks for Github (Fixes +++).
This commit is contained in:
parent
0e83599b9f
commit
f26f000bb4
2 changed files with 4 additions and 6 deletions
|
|
@ -180,18 +180,16 @@ class BuildStore extends Store
|
|||
*
|
||||
* @param integer $projectId
|
||||
* @param string $commitId
|
||||
* @param string $branch
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getByProjectAndCommit($projectId, $commitId, $branch)
|
||||
public function getByProjectAndCommit($projectId, $commitId)
|
||||
{
|
||||
$query = 'SELECT * FROM {{build}} WHERE {{project_id}} = :project_id AND {{commit_id}} = :commit_id AND {{branch}} = :branch';
|
||||
$query = 'SELECT * FROM {{build}} WHERE {{project_id}} = :project_id AND {{commit_id}} = :commit_id';
|
||||
$stmt = Database::getConnection('read')->prepareCommon($query);
|
||||
|
||||
$stmt->bindValue(':project_id', $projectId);
|
||||
$stmt->bindValue(':commit_id', $commitId);
|
||||
$stmt->bindValue(':branch', $branch);
|
||||
|
||||
if ($stmt->execute()) {
|
||||
$res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue