MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / isDefaultBranchProtected

Function isDefaultBranchProtected

pkg/cmd/project/convert/convert.go:332–334  ·  view source on GitHub ↗
(opts *ConvertOptions)

Source from the content-addressed store, hash-verified

330}
331
332func isDefaultBranchProtected(opts *ConvertOptions) bool {
333 return slices.Contains(opts.GitProtectedBranchPatterns.Value, opts.GitBranch.Value)
334}
335
336func promptProjectGitCredentials(opts *ConvertOptions) error {
337 if opts.GitUsername.Value == "" {

Callers 2

CommitMethod · 0.85
PromptForConfigAsCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected