2016-07-28 22:39:35 -04:00
|
|
|
module MergeRequests
|
2016-08-15 19:45:23 -04:00
|
|
|
class ResolvedDiscussionNotificationService < MergeRequests::BaseService
|
2016-07-28 22:39:35 -04:00
|
|
|
def execute(merge_request)
|
|
|
|
return unless merge_request.discussions_resolved?
|
|
|
|
|
|
|
|
SystemNoteService.resolve_all_discussions(merge_request, project, current_user)
|
2016-07-28 23:00:32 -04:00
|
|
|
notification_service.resolve_all_discussions(merge_request, current_user)
|
2016-07-28 22:39:35 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|