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

Function unProtectBranch

cmd/edit_branch.go:109–119  ·  view source on GitHub ↗
(branch, project string)

Source from the content-addressed store, hash-verified

107}
108
109func unProtectBranch(branch, project string) (*gitlab.Branch, error) {
110 git, err := newGitlabClient()
111 if err != nil {
112 return nil, err
113 }
114 branchInfo, _, err := git.Branches.UnprotectBranch(project, branch)
115 if err != nil {
116 return nil, err
117 }
118 return branchInfo, nil
119}

Callers 1

runUnProtectBranchFunction · 0.85

Calls 1

newGitlabClientFunction · 0.85

Tested by

no test coverage detected