* Adjust delete branch rule for mr.

This commit is contained in:
caoyanyi
2023-12-22 13:16:16 +08:00
parent 06f11f94dd
commit ffb2994624
+1 -1
View File
@@ -828,7 +828,7 @@ class mrModel extends model
if(!isset($rowMR->massage))
{
$rowMR = $this->apiGetSingleMR($MR->hostID, $MR->targetProject, $MR->mriid);
if($data['delete_branch_after_merge'] == true) $this->loadModel('gogs')->apiDeleteBranch($MR->hostID, $MR->targetProject, $MR->sourceBranch);
if($MR->removeSourceBranch == '1') $this->loadModel('gogs')->apiDeleteBranch($MR->hostID, $MR->targetProject, $MR->sourceBranch);
}
return $rowMR;