Merge branch 'devops21'

This commit is contained in:
liyuchun
2022-02-14 10:20:11 +08:00
70 changed files with 958 additions and 137 deletions
+14
View File
@@ -2809,4 +2809,18 @@ class gitlabModel extends model
return false;
}
/**
* Get gitlab version.
*
* @param string $host
* @param string $token
* @access public
* @return object
*/
public function getVersion($host, $token)
{
$host = rtrim($host, '/') . "/api/v4%s?private_token=$token";
return $this->apiGet($host, '/version');
}
}