MCPcopy Create free account
hub / github.com/devopsctl/gitlabctl / newBranch

Function newBranch

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

Source from the content-addressed store, hash-verified

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

Callers 3

TestProtectBranchFunction · 0.85
runNewBranchFunction · 0.85
TestDeleteBranchCmdFunction · 0.85

Calls 1

newGitlabClientFunction · 0.85

Tested by 2

TestProtectBranchFunction · 0.68
TestDeleteBranchCmdFunction · 0.68