class Github::Client::Repos::Branches::Protections

The Branch Protections API

def delete(*args)

Other tags:
    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)

Other tags:
    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)

Other tags:
    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