* Add test case for apiGetSingleBranchPriv.

This commit is contained in:
caoyanyi
2021-12-10 02:07:03 +00:00
parent 55c61f9ee7
commit ddae5d5c76
2 changed files with 40 additions and 0 deletions
+1
View File
@@ -2376,6 +2376,7 @@ class gitlabModel extends model
*/
public function apiGetSingleBranchPriv($gitlabID, $projectID, $branch)
{
if(empty($gitlabID)) return false;
$url = sprintf($this->getApiRoot($gitlabID), "/projects/$projectID/protected_branches/$branch");
return json_decode(commonModel::http($url));
}