Skip to content
Snippets Groups Projects
Commit 6bab69aa authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Show it as successful pipeline, rather than success pipeline

parent 8dd580f4
No related branches found
No related tags found
1 merge request!6342Integrate CI emails into notification system
Loading
@@ -74,4 +74,13 @@ module NotificationsHelper
Loading
@@ -74,4 +74,13 @@ module NotificationsHelper
return unless notification_setting.source_type return unless notification_setting.source_type
hidden_field_tag "#{notification_setting.source_type.downcase}_id", notification_setting.source_id hidden_field_tag "#{notification_setting.source_type.downcase}_id", notification_setting.source_id
end end
def notification_event_name(event)
case event
when :success_pipeline
'Successful pipeline'
else
event.to_s.humanize
end
end
end end
Loading
@@ -27,5 +27,5 @@
Loading
@@ -27,5 +27,5 @@
%label{ for: field_id } %label{ for: field_id }
= check_box("notification_setting", event, id: field_id, class: "js-custom-notification-event", checked: notification_setting.events[event]) = check_box("notification_setting", event, id: field_id, class: "js-custom-notification-event", checked: notification_setting.events[event])
%strong %strong
= event.to_s.humanize = notification_event_name(event)
= icon("spinner spin", class: "custom-notification-event-loading") = icon("spinner spin", class: "custom-notification-event-loading")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment