From 53a7568098618dcd78242864c16187eda61aa562 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 4 Aug 2013 16:22:06 +0300 Subject: [PATCH] Fix sending 2 emails on issue close --- app/services/notification_service.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 58ba915..7330749 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -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? -- libgit2 0.21.2