* Sync MR in ZenTao database whatever status of MR in GitLab.
This commit is contained in:
+3
-2
@@ -192,7 +192,8 @@ class mrModel extends model
|
||||
{
|
||||
$rawMR = $this->apiGetSingleMR($MR->gitlabID, $MR->targetProject, $MR->mriid);
|
||||
|
||||
if(isset($rawMR->iid) and $rawMR->state != 'merged')
|
||||
/* Sync MR in ZenTao database whatever status of MR in GitLab. */
|
||||
if(isset($rawMR->iid))
|
||||
{
|
||||
$map = $this->config->MR->maps->sync;
|
||||
$gitlabUsers = $this->gitlab->getUserIdAccountPairs($MR->gitlabID);
|
||||
@@ -239,7 +240,7 @@ class mrModel extends model
|
||||
|
||||
$rawMR = $this->apiGetSingleMR($MR->gitlabID, $MR->targetProject, $MR->mriid);
|
||||
|
||||
if(isset($rawMR->iid) and $rawMR->state != 'merged')
|
||||
if(isset($rawMR->iid))
|
||||
{
|
||||
/* create gitlab mr todo to zentao todo */
|
||||
$this->batchSyncTodo($MR->gitlabID, $MR->targetProject);
|
||||
|
||||
Reference in New Issue
Block a user