diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-09-30 01:15:03 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-10-17 07:25:21 +0000 |
commit | 6bab69aa0c0a6383a7eda5d74504939891f30f41 (patch) | |
tree | 028f7159f70a24546a77230a985a73b0aa9dd4b6 /app/helpers/notifications_helper.rb | |
parent | 8dd580f4022fa01521264cfbd6eaeb92d39430b5 (diff) | |
download | gitlab-ce-6bab69aa0c0a6383a7eda5d74504939891f30f41.tar.gz |
Show it as successful pipeline, rather than success pipeline
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342#note_16132150
Diffstat (limited to 'app/helpers/notifications_helper.rb')
-rw-r--r-- | app/helpers/notifications_helper.rb | 9 |
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 |