(branch, project string)
| 107 | } |
| 108 | |
| 109 | func 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 | } |
no test coverage detected