* Fix exec gitlab pipeline function.

This commit is contained in:
Guan Xiying
2021-07-29 17:28:51 +08:00
parent 21d998872d
commit 800ff00032
7 changed files with 64 additions and 54 deletions
+18
View File
@@ -266,6 +266,24 @@ class gitlabModel extends model
return false;
}
/**
* Get ref option menus.
*
* @param int $gitlabID
* @param int $projectID
* @access public
* @return array
*/
public function getRefOptions($gitlabID, $projectID)
{
$refList = array();
$branches = $this->loadModel('gitlab')->apiGetBranches($gitlabID, $projectID);
$tags = $this->loadModel('gitlab')->apiGetTags($gitlabID, $projectID);
foreach($branches as $branch) $refList[] = "Branch::" . $branch->name;
foreach($tags as $tag) $refList[] = "Tag::" . $tag->name;
return $refList;
}
/**
* Create a gitlab.
*