MCPcopy Index your code
hub / github.com/devopsctl/gitlabctl / getBranch

Function getBranch

cmd/get_branch.go:63–73  ·  view source on GitHub ↗
(project string, opts *gitlab.ListBranchesOptions)

Source from the content-addressed store, hash-verified

61}
62
63func 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}

Callers 1

runGetBranchFunction · 0.85

Calls 1

newGitlabClientFunction · 0.85

Tested by

no test coverage detected