(project string, opts *gitlab.CreateBranchOptions)
| 61 | } |
| 62 | |
| 63 | func newBranch(project string, opts *gitlab.CreateBranchOptions) (*gitlab.Branch, error) { |
| 64 | git, err := newGitlabClient() |
| 65 | if err != nil { |
| 66 | return nil, err |
| 67 | } |
| 68 | branch, _, err := git.Branches.CreateBranch(project, opts) |
| 69 | if err != nil { |
| 70 | return nil, err |
| 71 | } |
| 72 | return branch, nil |
| 73 | } |