Sha256: ae0389eee8af9e68e1fec5837efa48322ffaf372ba3bb7d7208140f14f5262e2
Contents?: true
Size: 605 Bytes
Versions: 34
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true module GitlabQuality module TestTooling module GitlabClient class CommitsClient < GitlabClient def create(branch_name, file_path, new_content, message) commit = handle_gitlab_client_exceptions do client.create_commit(project, branch_name, message, [ { action: :update, file_path: file_path, content: new_content } ]) end Runtime::Logger.debug("Created commit #{commit['id']} (#{commit['web_url']}) on #{branch_name}") if commit commit end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems