class Github::Client::Repos::Branches::Protections
The Branch Protections API
def delete(*args)
- Api: - public
def delete(*args) arguments(args, required: [:user, :repo, :branch]) delete_request("/repos/#{arguments.user}/#{arguments.repo}/branches/#{arguments.branch}/protection", arguments.params) end
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
def get(*args)
- Api: - public
def get(*args) arguments(args, required: [:user, :repo, :branch]) get_request("/repos/#{arguments.user}/#{arguments.repo}/branches/#{arguments.branch}/protection", arguments.params) end