debian-mirror-gitlab/app/services/merge_requests/create_approval_event_service.rb
2022-08-27 11:52:29 +05:30

11 lines
280 B
Ruby

# frozen_string_literal: true
module MergeRequests
class CreateApprovalEventService < MergeRequests::BaseService
def execute(merge_request)
event_service.approve_mr(merge_request, current_user)
end
end
end
MergeRequests::CreateApprovalEventService.prepend_mod