Commit 365cdd8f authored by Lin Jen-Shin's avatar Lin Jen-Shin

Make successful pipeline emails off for watchers

Closes #24845
parent 91e56012
...@@ -591,7 +591,11 @@ class NotificationService ...@@ -591,7 +591,11 @@ class NotificationService
custom_action = build_custom_key(action, target) custom_action = build_custom_key(action, target)
recipients = target.participants(current_user) recipients = target.participants(current_user)
# TODO: CLEAN ME UP!
unless custom_action == :success_pipeline
recipients = add_project_watchers(recipients, project) recipients = add_project_watchers(recipients, project)
end
recipients = add_custom_notifications(recipients, project, custom_action) recipients = add_custom_notifications(recipients, project, custom_action)
recipients = reject_mention_users(recipients, project) recipients = reject_mention_users(recipients, project)
......
---
title: Make successful pipeline emails off for watchers
merge_request: 8176
author:
...@@ -73,7 +73,7 @@ In all of the below cases, the notification will be sent to: ...@@ -73,7 +73,7 @@ In all of the below cases, the notification will be sent to:
...with notification level "Participating" or higher ...with notification level "Participating" or higher
- Watchers: users with notification level "Watch" - Watchers: users with notification level "Watch" (however successful pipeline would be off for watchers)
- Subscribers: anyone who manually subscribed to the issue/merge request - Subscribers: anyone who manually subscribed to the issue/merge request
- Custom: Users with notification level "custom" who turned on notifications for any of the events present in the table below - Custom: Users with notification level "custom" who turned on notifications for any of the events present in the table below
......
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