* Adjust codes.

This commit is contained in:
caoyanyi
2022-08-15 10:28:28 +08:00
parent daaa4ffa82
commit eb4a3d6d0a
+1 -2
View File
@@ -2887,13 +2887,12 @@ class gitlabModel extends model
* @param int $projectID
* @param string $branch
* @access public
* @return void
* @return object|array
*/
public function apiGetPipeline($gitlabID, $projectID, $branch)
{
$apiRoot = $this->getApiRoot($gitlabID);
$url = sprintf($apiRoot, "/projects/$projectID/pipelines") . "&ref=$branch";
a($url);
return json_decode(commonModel::http($url));
}
}