+ Add create branch and tag page.

This commit is contained in:
caoyanyi
2023-11-06 14:03:41 +08:00
parent a66e97443b
commit efeb763985
4 changed files with 90 additions and 4 deletions
+1
View File
@@ -2829,6 +2829,7 @@ class gitlabModel extends model
$tag = fixer::input('post')->get();
if(empty($tag->tag_name)) dao::$errors['tag_name'][] = $this->lang->gitlab->tag->emptyNameError;
if(empty($tag->ref)) dao::$errors['ref'][] = $this->lang->gitlab->tag->emptyRefError;
if(dao::isError()) return false;
$singleBranch = $this->apiGetSingleTag($gitlabID, $projectID, $tag->tag_name);
if(!empty($singleBranch->name)) dao::$errors['tag_name'][] = $this->lang->gitlab->tag->issetNameError;