* Finish task #48614.
This commit is contained in:
@@ -20,6 +20,9 @@ class gitlabModel extends model
|
||||
public $developerAccess = 30;
|
||||
public $maintainerAccess = 40;
|
||||
|
||||
/* Minimum compatible version. */
|
||||
public $minCompatibleVersion = '9.0';
|
||||
|
||||
/**
|
||||
* Get a gitlab by id.
|
||||
*
|
||||
@@ -2809,4 +2812,18 @@ class gitlabModel extends model
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get gitlab version.
|
||||
*
|
||||
* @param string $host
|
||||
* @param string $token
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getVersion($host, $token)
|
||||
{
|
||||
$host = rtrim($host, '/') . "/api/v4%s?private_token=$token";
|
||||
return $this->apiGet($host, '/version');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user