Commit 53a7568098618dcd78242864c16187eda61aa562
1 parent
73c163fb
Exists in
master
and in
4 other branches
Fix sending 2 emails on issue close
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
app/services/notification_service.rb
| @@ -102,6 +102,9 @@ class NotificationService | @@ -102,6 +102,9 @@ class NotificationService | ||
| 102 | # ignore wall messages | 102 | # ignore wall messages |
| 103 | return true unless note.noteable_type.present? | 103 | return true unless note.noteable_type.present? |
| 104 | 104 | ||
| 105 | + # ignore gitlab service messages | ||
| 106 | + return true if note.note =~ /\A_Status changed to closed_/ | ||
| 107 | + | ||
| 105 | opts = { noteable_type: note.noteable_type, project_id: note.project_id } | 108 | opts = { noteable_type: note.noteable_type, project_id: note.project_id } |
| 106 | 109 | ||
| 107 | if note.commit_id.present? | 110 | if note.commit_id.present? |