module Gitlab::Client::Branches

def unprotect_branch(project, branch)

Returns:
  • (Gitlab::ObjectifiedHash) - Details about the branch

Parameters:
  • branch (String) -- The name of the branch.
  • project (Integer, String) -- The ID or name of a project.
def unprotect_branch(project, branch)
  delete("/projects/#{url_encode project}/protected_branches/#{url_encode branch}")
end