BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
365cdd8f
Commit
365cdd8f
authored
Dec 22, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make successful pipeline emails off for watchers
Closes #24845
parent
91e56012
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
notification_service.rb
app/services/notification_service.rb
+5
-1
remove-successful-pipeline-emails-for-now.yml
.../unreleased/remove-successful-pipeline-emails-for-now.yml
+4
-0
notifications.md
doc/workflow/notifications.md
+1
-1
No files found.
app/services/notification_service.rb
View file @
365cdd8f
...
...
@@ -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
)
...
...
changelogs/unreleased/remove-successful-pipeline-emails-for-now.yml
0 → 100644
View file @
365cdd8f
---
title
:
Make successful pipeline emails off for watchers
merge_request
:
8176
author
:
doc/workflow/notifications.md
View file @
365cdd8f
...
...
@@ -73,7 +73,7 @@ In all of the below cases, the notification will be sent to:
...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
-
Custom: Users with notification level "custom" who turned on notifications for any of the events present in the table below
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment