diff options
author | Aran Koning <arankoning@gmail.com> | 2016-05-23 16:35:19 +0200 |
---|---|---|
committer | Aran Koning <arankoning@gmail.com> | 2016-05-24 10:54:16 +0200 |
commit | fcd723eda6ab1c1f8839570140db54ae3f7ff837 (patch) | |
tree | 38ba2f124f4411f9754eee2193c5ec01efedef5a /app/models | |
parent | baa9c66057fccefce05b9f01009942fb079fee22 (diff) | |
download | gitlab-ce-fcd723eda6ab1c1f8839570140db54ae3f7ff837.tar.gz |
Seconds plural slack
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project_services/slack_service/build_message.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_services/slack_service/build_message.rb b/app/models/project_services/slack_service/build_message.rb index c124cad4afd..69c21b3fc38 100644 --- a/app/models/project_services/slack_service/build_message.rb +++ b/app/models/project_services/slack_service/build_message.rb @@ -35,8 +35,8 @@ class SlackService private def message - "#{project_link}: Commit #{commit_link} of #{branch_link} #{ref_type} by #{user_name} #{humanized_status} in #{duration} second(s)" - end + "#{project_link}: Commit #{commit_link} of #{branch_link} #{ref_type} by #{user_name} #{humanized_status} in #{duration} #{'second'.pluralize(duration)}" + end def format(string) Slack::Notifier::LinkFormatter.format(string) |