* Rename jobModel::getGitlabProjectName to gitlabModel::getObjectNameForJob.

This commit is contained in:
Guan Xiying
2021-07-29 15:51:11 +08:00
parent f84eb4c1ac
commit f053df8912
4 changed files with 16 additions and 20 deletions
+14
View File
@@ -252,6 +252,20 @@ class gitlabModel extends model
->fetch('openID');
}
/**
* Get gitlab project name of one gitlab project.
*
* @param int $jobID
* @access public
* @return string|false
*/
public function getObjectNameForJob($gitlabID, $projectID)
{
$project = $this->apiGetSingleProject($gitlabID, $projectID);
if(isset($project->name)) return $project->name;
return false;
}
/**
* Create a gitlab.
*