class Github::Client::GitData::Commits

def create(*args)

Other tags:
    Api: - public

Parameters:
  • params (Hash) --
def create(*args)
  arguments(args, required: [:user, :repo]) do
    permit VALID_COMMIT_PARAM_NAMES
    assert_required REQUIRED_COMMIT_PARAMS
  end
  post_request("/repos/#{arguments.user}/#{arguments.repo}/git/commits", arguments.params)
end

def get(*args)

Other tags:
    Api: - public
def get(*args)
  arguments(args, required: [:user, :repo, :sha])
  params = arguments.params
  get_request("/repos/#{arguments.user}/#{arguments.repo}/git/commits/#{arguments.sha}", params)
end