Method: Gitlab::Client::Branches#protected_branches
- Defined in:
- lib/gitlab/client/branches.rb
permalink #protected_branches(project) ⇒ Array<Gitlab::ObjectifiedHash> Also known as: repo_protected_branches
Gets a list of protected branches from a project.
117 118 119 |
# File 'lib/gitlab/client/branches.rb', line 117 def protected_branches(project) get("/projects/#{url_encode project}/protected_branches") end |