func NewGitLabProvider(token string, options Options) Provider {
	GitLabBaseURL := DefaultGitLabAPIURL
	if options.BaseURL != "" {
		GitLabBaseURL = options.BaseURL
	}

	client, err := gitlab.NewClient(token, gitlab.WithBaseURL(GitLabBaseURL))
	if err != nil {
		panic(fmt.Sprintf("could not set base URL for gitlab client: %v", err))
	}

	return &GitLabProvider{
		token:   token,
		client:  client,
		options: options,
	}
}
// NewGitLabProvider creates a Provider given a token.
// If accessing private repositories, token must not be empty.
NewGitLabProvider creates a Provider given a token.
If accessing private repositories, token must not be empty.
// NewGitLabProvider creates a Provider given a token . // If accessing private repositories token must not be empty .
func NewGitLabProvider(token string, options Options) Provider {
	GitLabBaseURL := DefaultGitLabAPIURL
	if options.BaseURL != "" {
		GitLabBaseURL = options.BaseURL
	}
	client, err := gitlab.NewClient(token, gitlab.WithBaseURL(GitLabBaseURL))
	if err != nil {
		panic(fmt.Sprintf("could not set base URL for gitlab client: %v", err))
	}
	return &GitLabProvider{
		token:   token,
		client:  client,
		options: options,
	}
}
func NewGitLabProvider ( token string , options Options ) Provider { GitLabBaseURL := DefaultGitLabAPIURL if options . BaseURL != " " { GitLabBaseURL = options . BaseURL } client , err := gitlab . NewClient ( token , gitlab . WithBaseURL ( GitLabBaseURL ) ) if err != nil { panic ( fmt . Sprintf ( " " , err ) ) } return & GitLabProvider { token : token , client : client , options : options , } }
NewGitLabProvider creates a Provider given a token.
NewGitLabProvider creates a Provider given a token .