BigW Consortium Gitlab

Commit 53a75680 by Dmitriy Zaporozhets

Fix sending 2 emails on issue close

parent 73c163fb
......@@ -102,6 +102,9 @@ class NotificationService
# ignore wall messages
return true unless note.noteable_type.present?
# ignore gitlab service messages
return true if note.note =~ /\A_Status changed to closed_/
opts = { noteable_type: note.noteable_type, project_id: note.project_id }
if note.commit_id.present?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment