summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorAran Koning <arankoning@gmail.com>2016-05-23 16:35:19 +0200
committerAran Koning <arankoning@gmail.com>2016-05-24 10:54:16 +0200
commitfcd723eda6ab1c1f8839570140db54ae3f7ff837 (patch)
tree38ba2f124f4411f9754eee2193c5ec01efedef5a /app/models
parentbaa9c66057fccefce05b9f01009942fb079fee22 (diff)
downloadgitlab-ce-fcd723eda6ab1c1f8839570140db54ae3f7ff837.tar.gz
Seconds plural slack
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project_services/slack_service/build_message.rb4
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)