(client *client.Client, projectID string, gitRef string, runbookIdentifier string)
| 91 | } |
| 92 | |
| 93 | func 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 | |
| 105 | func GetAllGitReferences(client *client.Client, project *projects.Project) ([]*projects.GitReference, error) { |
| 106 | branches, err := client.Projects.GetGitBranches(project) |
no outgoing calls
no test coverage detected