From eb4a3d6d0a1365dc4d36c37d0fe9bce911d6012f Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Mon, 15 Aug 2022 10:28:28 +0800 Subject: [PATCH] * Adjust codes. --- module/gitlab/model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/gitlab/model.php b/module/gitlab/model.php index 402ac8c192..d5ab4d0eb6 100644 --- a/module/gitlab/model.php +++ b/module/gitlab/model.php @@ -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)); } }