(project string, opts *gitlab.ListBranchesOptions)
| 61 | } |
| 62 | |
| 63 | func getBranch(project string, opts *gitlab.ListBranchesOptions) ([]*gitlab.Branch, error) { |
| 64 | git, err := newGitlabClient() |
| 65 | if err != nil { |
| 66 | return nil, err |
| 67 | } |
| 68 | branches, _, err := git.Branches.ListBranches(project, opts) |
| 69 | if err != nil { |
| 70 | return nil, err |
| 71 | } |
| 72 | return branches, nil |
| 73 | } |
no test coverage detected