Merge branch 'devops18_caoyanyi' into 'master'
* Modify test case for apiCreateBranchPriv. See merge request easycorp/zentaopms!1236
This commit is contained in:
@@ -2539,7 +2539,8 @@ class gitlabModel extends model
|
||||
*/
|
||||
public function apiCreateBranchPriv($gitlabID, $projectID, $priv)
|
||||
{
|
||||
if(empty($gitlabID)) return false;
|
||||
if(empty($gitlabID)) return false;
|
||||
if(empty($projectID)) return false;
|
||||
if(empty($priv->name)) return false;
|
||||
$url = sprintf($this->getApiRoot($gitlabID), "/projects/" . $projectID . '/protected_branches');
|
||||
return json_decode(commonModel::http($url, $priv));
|
||||
|
||||
Reference in New Issue
Block a user