Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-12-21 19:36:10 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-01-05 14:22:47 +0300
commit365cdd8fe0d107257ba5af47b80b66f08217b6bc (patch)
tree3d6cc4c1136ec9bd5e98cae0967a012a70d5d22a /app/services/notification_service.rb
parent91e560124b241972f3ffe6b682f1501a9c209d4e (diff)
Make successful pipeline emails off for watchers
Closes #24845
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r--app/services/notification_service.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb
index 9a7af5730d2..75277d3ac12 100644
--- a/app/services/notification_service.rb
+++ b/app/services/notification_service.rb
@@ -591,7 +591,11 @@ class NotificationService
custom_action = build_custom_key(action, target)
recipients = target.participants(current_user)
- recipients = add_project_watchers(recipients, project)
+
+ # TODO: CLEAN ME UP!
+ unless custom_action == :success_pipeline
+ recipients = add_project_watchers(recipients, project)
+ end
recipients = add_custom_notifications(recipients, project, custom_action)
recipients = reject_mention_users(recipients, project)