2018-11-18 11:00:15 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-09-13 17:45:13 +05:30
|
|
|
module MergeRequests
|
|
|
|
class ResolvedDiscussionNotificationService < MergeRequests::BaseService
|
|
|
|
def execute(merge_request)
|
|
|
|
return unless merge_request.discussions_resolved?
|
|
|
|
|
|
|
|
SystemNoteService.resolve_all_discussions(merge_request, project, current_user)
|
2022-01-26 12:08:38 +05:30
|
|
|
execute_hooks(merge_request, 'update')
|
2018-10-15 14:42:47 +05:30
|
|
|
notification_service.async.resolve_all_discussions(merge_request, current_user)
|
2016-09-13 17:45:13 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|