Revert "Merge branch 'devops18_caoyanyi' into 'master'"

This reverts commit 41004048b2, reversing
changes made to 86fb6e2680.
This commit is contained in:
Hao Sun
2021-12-31 17:22:32 +08:00
parent 3bf672f1f3
commit 3a0ec82016
2 changed files with 8 additions and 11 deletions
+1 -2
View File
@@ -2539,8 +2539,7 @@ class gitlabModel extends model
*/
public function apiCreateBranchPriv($gitlabID, $projectID, $priv)
{
if(empty($gitlabID)) return false;
if(empty($projectID)) return false;
if(empty($gitlabID)) return false;
if(empty($priv->name)) return false;
$url = sprintf($this->getApiRoot($gitlabID), "/projects/" . $projectID . '/protected_branches');
return json_decode(commonModel::http($url, $priv));