summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-06 21:07:59 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-06 21:07:59 +0000
commit1c25ac983cd1e4335faa1ec4922c314d6321e224 (patch)
tree68d88ab5d9ed5c3397e52fe85fc38ab237335a91 /app/workers
parent83731155d997ae24c7e0cd5ffa6f0dba41bec6dc (diff)
downloadgitlab-ce-1c25ac983cd1e4335faa1ec4922c314d6321e224.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/new_merge_request_worker.rb8
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