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:
authorSean McGivern <sean@mcgivern.me.uk>2016-11-09 16:41:04 +0300
committerSean McGivern <sean@mcgivern.me.uk>2016-11-09 16:41:04 +0300
commita8fcaaf1bf27a2bcf20a0cde2546f0de7b73dced (patch)
tree5e006c7096862bfdf17085783e26d32559a05e59 /app/helpers
parent940cb3db5b936aec90a08c94aa9952f9b52c1fd3 (diff)
parent3e75e453fb258b3e60f3e9606b5f589006a4654b (diff)
Merge branch 'pipeline-notifications' into 'master'
Integrate CI emails into notification system Closes #21930 See merge request !6342
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/notifications_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb
index 7e8369d0a05..03cc8f2b6bd 100644
--- a/app/helpers/notifications_helper.rb
+++ b/app/helpers/notifications_helper.rb
@@ -74,4 +74,13 @@ module NotificationsHelper
return unless notification_setting.source_type
hidden_field_tag "#{notification_setting.source_type.downcase}_id", notification_setting.source_id
end
+
+ def notification_event_name(event)
+ case event
+ when :success_pipeline
+ 'Successful pipeline'
+ else
+ event.to_s.humanize
+ end
+ end
end