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

Function BuildGitResourcesBaseline

pkg/gitresources/gitResources.go:46–58  ·  view source on GitHub ↗

note this expects to have prettifyHelp run over it

(gitResources []releases.ReleaseTemplateGitResource)

Source from the content-addressed store, hash-verified

44`) // note this expects to have prettifyHelp run over it
45
46func BuildGitResourcesBaseline(gitResources []releases.ReleaseTemplateGitResource) []*GitResourceGitRef {
47 result := make([]*GitResourceGitRef, 0, len(gitResources))
48
49 for _, gitResource := range gitResources {
50 result = append(result, &GitResourceGitRef{
51 ActionName: gitResource.ActionName,
52 GitRef: gitResource.DefaultBranch,
53 GitResourceName: gitResource.Name,
54 })
55 }
56
57 return result
58}
59
60type GitResourceGitRef struct {
61 ActionName string

Callers 4

AskQuestionsFunction · 0.92
createRunFunction · 0.92
PromptMissingFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected