class Github::Client::Repos::Branches::Protections
def edit(*args)
- Api: - public
Parameters:
-
params
(Hash
) --
def edit(*args) arguments(args, required: [:user, :repo, :branch]) do permit VALID_PROTECTION_PARAM_NAMES end put_request("/repos/#{arguments.user}/#{arguments.repo}/branches/#{arguments.branch}/protection", arguments.params) end