summaryrefslogtreecommitdiff
path: root/app/services/system_note_service.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-07-28 20:39:35 -0600
committerDouwe Maan <douwe@selenight.nl>2016-07-28 20:39:35 -0600
commitfa4a613517a4a236ea5e98a1964e52c8b4eef595 (patch)
tree5142b38d7dabc9096818dae7b15c45719de98efb /app/services/system_note_service.rb
parent220b82a40c2af56712602c4f9c37163b84c92cac (diff)
downloadgitlab-ce-fa4a613517a4a236ea5e98a1964e52c8b4eef595.tar.gz
Add 'Resolved all discussions' system note
Diffstat (limited to 'app/services/system_note_service.rb')
-rw-r--r--app/services/system_note_service.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb
index 1ab3b5789bc..a9d5bad5122 100644
--- a/app/services/system_note_service.rb
+++ b/app/services/system_note_service.rb
@@ -156,6 +156,12 @@ class SystemNoteService
create_note(noteable: noteable, project: project, author: author, note: body)
end
+ def self.resolve_all_discussions(merge_request, project, author)
+ body = "Resolved all discussions"
+
+ create_note(noteable: merge_request, project: project, author: author, note: body)
+ end
+
# Called when the title of a Noteable is changed
#
# noteable - Noteable object that responds to `title`