Skip to content

Commit

Permalink
Use RepositoryVisibility enums instead of custom values
Browse files Browse the repository at this point in the history
  • Loading branch information
nagyv committed Jul 4, 2024
1 parent 79bb482 commit c032ef9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/flags/gitlab_visibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ import (
"strings"

"github.com/fluxcd/flux2/v2/internal/utils"
"github.com/fluxcd/go-git-providers/gitprovider"
)

var supportedGitLabVisibilities = []string{
"public",
"internal",
"private",
string(gitprovider.RepositoryVisibilityPublic),
string(gitprovider.RepositoryVisibilityInternal),
string(gitprovider.RepositoryVisibilityPrivate),
}

type GitLabVisibility string
Expand Down

0 comments on commit c032ef9

Please sign in to comment.