Skip to content

Commit

Permalink
Merge pull request #98 from erik-bonizzoni/fix-project-tools
Browse files Browse the repository at this point in the history
fix: change project tool array values for gitlab cloud/on-prem
  • Loading branch information
canack authored Jan 16, 2024
2 parents a269d5e + c777180 commit 2817af2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
}
Expand Down

0 comments on commit 2817af2

Please sign in to comment.