Method: Gitlab::Client::Branches#unprotect_branch
- Defined in:
- lib/gitlab/client/branches.rb
#unprotect_branch(project, branch) ⇒ Gitlab::ObjectifiedHash Also known as: repo_unprotect_branch
Unprotects a repository branch.
65 66 67 |
# File 'lib/gitlab/client/branches.rb', line 65 def unprotect_branch(project, branch) delete("/projects/#{url_encode project}/protected_branches/#{url_encode branch}") end |