* Adjust git service check rule.

This commit is contained in:
caoyanyi
2023-11-03 10:14:44 +08:00
parent ad2da1e0d5
commit cb34fa7bbf
+1 -1
View File
@@ -67,7 +67,7 @@ class mr extends control
$repoID = $this->loadModel('repo')->saveState($repoID, $objectID);
$repo = $this->repo->getByID($repoID);
if(!in_array($repo->SCM, $this->config->mr->gitServiceTypeList))
if(!in_array(strtolower($repo->SCM), $this->config->mr->gitServiceList))
{
$repoID = $this->dao->select('id')->from(TABLE_REPO)->where('deleted')->eq('0')->andWhere('SCM')->in(array('Gitlab', 'Gitea', 'Gogs'))->andWhere('synced')->eq(1)->orderBy('id')->fetch('id');
$repo = $this->repo->getByID($repoID);