diff options
Diffstat (limited to 'app/workers/new_merge_request_worker.rb')
-rw-r--r-- | app/workers/new_merge_request_worker.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/workers/new_merge_request_worker.rb b/app/workers/new_merge_request_worker.rb index 10a79841df9..f672d37a83e 100644 --- a/app/workers/new_merge_request_worker.rb +++ b/app/workers/new_merge_request_worker.rb @@ -12,11 +12,9 @@ class NewMergeRequestWorker # rubocop:disable Scalability/IdempotentWorker def perform(merge_request_id, user_id) return unless objects_found?(merge_request_id, user_id) - EventCreateService.new.open_mr(issuable, user) - NotificationService.new.new_merge_request(issuable, user) - - issuable.diffs(include_stats: false).write_cache - issuable.create_cross_references!(user) + MergeRequests::AfterCreateService + .new(issuable.target_project, user) + .execute(issuable) end def issuable_class |