* Adjust pipeline check after api create mr.

This commit is contained in:
caoyanyi
2023-12-16 15:07:35 +08:00
parent 9c59a6edd8
commit bafa7ee76e
+4 -3
View File
@@ -244,9 +244,10 @@ class mrModel extends model
{
if($MR->hasNoConflict == '0' && $MR->mergeStatus == 'can_be_merged' && $MR->jobID)
{
$extraParam = array('sourceBranch' => $MR->sourceBranch, 'targetBranch' => $MR->targetBranch);
$pipeline = $this->loadModel('job')->exec($MR->jobID, $extraParam);
$newMR = new stdClass();
$pipeline = $this->loadModel('job')->exec($MR->jobID, array('sourceBranch' => $MR->sourceBranch, 'targetBranch' => $MR->targetBranch));
if(!$pipeline) return false;
$newMR = new stdClass();
if(!empty($pipeline->queue))
{
$compile = $this->loadModel('compile')->getByQueue((int)$pipeline->queue);