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

Function GetGitRunbook

pkg/cmd/runbook/shared/shared.go:93–103  ·  view source on GitHub ↗
(client *client.Client, projectID string, gitRef string, runbookIdentifier string)

Source from the content-addressed store, hash-verified

91}
92
93func GetGitRunbook(client *client.Client, projectID string, gitRef string, runbookIdentifier string) (*runbooks.Runbook, error) {
94 runbook, err := runbooks.GetGitRunbookByID(client, client.GetSpaceID(), projectID, gitRef, runbookIdentifier)
95 if err != nil {
96 runbook, err = runbooks.GetGitRunbookByName(client, client.GetSpaceID(), projectID, gitRef, runbookIdentifier)
97 if err != nil {
98 return nil, err
99 }
100 }
101
102 return runbook, nil
103}
104
105func GetAllGitReferences(client *client.Client, project *projects.Project) ([]*projects.GitReference, error) {
106 branches, err := client.Projects.GetGitBranches(project)

Callers 1

NewGetRunbooksOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected