summaryrefslogtreecommitdiff
path: root/app/services/draft_notes
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/draft_notes')
-rw-r--r--app/services/draft_notes/publish_service.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/draft_notes/publish_service.rb b/app/services/draft_notes/publish_service.rb
index 316abff4552..82917241347 100644
--- a/app/services/draft_notes/publish_service.rb
+++ b/app/services/draft_notes/publish_service.rb
@@ -38,6 +38,8 @@ module DraftNotes
end
draft_notes.delete_all
+ set_reviewed
+
notification_service.async.new_review(review)
MergeRequests::ResolvedDiscussionNotificationService.new(project, current_user).execute(merge_request)
end
@@ -64,5 +66,9 @@ module DraftNotes
discussion.unresolve!
end
end
+
+ def set_reviewed
+ ::MergeRequests::MarkReviewerReviewedService.new(project, current_user).execute(merge_request)
+ end
end
end