From c7771802723bce4d276940571ab1fa3de46f1af7 Mon Sep 17 00:00:00 2001 From: Erik Bonizzoni Date: Tue, 16 Jan 2024 18:08:23 +0100 Subject: [PATCH] fix: change project tool array values for gitlab cloud/on-prem --- cmd/project.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/project.go b/cmd/project.go index 685eb61..4c7b3ba 100644 --- a/cmd/project.go +++ b/cmd/project.go @@ -31,8 +31,10 @@ const ( VCSToolBitbucketServer = "bitbucketserver" // VCSToolGitHub represents the Github VCS tool name VCSToolGitHub = "github" - // VCSToolGitLab represents the Gitlab VCS tool name - VCSToolGitLab = "gitlab" + // VCSToolGitLab represents the Gitlab Cloud VCS tool name + VCSToolGitLabCloud = "gitlabcloud" + // VCSToolGitLab represents the Gitlab On-Prem VCS tool name + VCSToolGitLabOnPrem = "gitlabonprem" // VCSToolGit represents the Git VCS tool name VCSToolGit = "git" // VCSToolGitHubEnterprise represents the GitHubEnterprise VCS tool name @@ -79,7 +81,7 @@ func checkProject(cmd *cobra.Command) { } switch almTool { - case VCSToolAzureServer, VCSToolAzureCloud, VCSToolBitbucket, VCSToolBitbucketServer, VCSToolGitHub, VCSToolGitLab, VCSToolGit, VCSToolGitHubEnterprise: + case VCSToolAzureServer, VCSToolAzureCloud, VCSToolBitbucket, VCSToolBitbucketServer, VCSToolGitHub, VCSToolGitLabCloud, VCSToolGitLabOnPrem, VCSToolGit, VCSToolGitHubEnterprise: default: qwm(ExitCodeError, fmt.Sprintf("alm tool [%s] is not valid", almTool)) }