module Gitlab::Client::Branches
def protected_branch(project, branch)
-
(Gitlab::ObjectifiedHash)
-
Parameters:
-
name
(String
) -- The name of the branch or wildcard -
project
(Integer, String
) -- The ID or name of a project.
def protected_branch(project, branch) get("/projects/#{url_encode project}/protected_branches/#{url_encode branch}") end