class Dependabot::Clients::Bitbucket

def create_commit(repo, branch_name, base_commit, commit_message, files,

def create_commit(repo, branch_name, base_commit, commit_message, files,
                  author_details)
  parameters = {
    message: commit_message, # TODO: Format markup in commit message
    author: "#{author_details.fetch(:name)} <#{author_details.fetch(:email)}>",
    parents: base_commit,
    branch: branch_name
  }
  files.each do |file|
    parameters[file.path] = file.content
  end
  body = encode_form_parameters(parameters)
  commit_path = "#{repo}/src"
  post(base_url + commit_path, body, "application/x-www-form-urlencoded")
end