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

8 lines
233 B
Ruby

module Files
class DeleteService < Files::BaseService
def commit
repository.remove_file(current_user, @file_path, @commit_message, @target_branch, author_email: @author_email, author_name: @author_name)
end
end
end