gitlab-org--gitlab-foss/app/services/files/update_service.rb

13 lines
360 B
Ruby

require_relative "base_service"
module Files
class UpdateService < Files::BaseService
def commit
repository.update_file(current_user, @file_path, @file_content,
branch: @target_branch,
previous_path: @previous_path,
message: @commit_message)
end
end
end