diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-15 23:51:57 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-12-16 17:51:08 +0100 |
commit | dc995daf90e67b5531dd7fbb8a958507f46e4eb6 (patch) | |
tree | 77f2289fc260094914a5d88ea2a7b6162306137d /lib | |
parent | 8ca5fef9d472e11b4a9ff5d5ab47bbba3e7e670d (diff) | |
download | gitlab-ce-dc995daf90e67b5531dd7fbb8a958507f46e4eb6.tar.gz |
Use Slack compatible syntax
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/chat_commands/presenter.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/chat_commands/presenter.rb b/lib/gitlab/chat_commands/presenter.rb index 3143dc092a1..14c78ac39aa 100644 --- a/lib/gitlab/chat_commands/presenter.rb +++ b/lib/gitlab/chat_commands/presenter.rb @@ -6,7 +6,7 @@ module Gitlab def authorize_chat_name(url) message = if url - ":wave: Hi there! Before I do anything for you, please [connect your GitLab account](#{url})." + ":wave: Hi there! Before I do anything for you, please <#{url}|connect your GitLab account>." else ":sweat_smile: Couldn't identify you, nor can I autorize you!" end @@ -44,7 +44,7 @@ module Gitlab end def access_denied - ephemeral_response("Whoops! That action is not allowed. This incident will be [reported](https://xkcd.com/838/).") + ephemeral_response("Whoops! That action is not allowed. This incident will be <https://xkcd.com/838/|reported>.") end private @@ -65,7 +65,7 @@ module Gitlab def single_resource(resource) return error(resource) if resource.errors.any? || !resource.persisted? - message = "### #{title(resource)}" + message = "#{title(resource)}:" message << "\n\n#{resource.description}" if resource.try(:description) in_channel_response(message) @@ -89,7 +89,7 @@ module Gitlab reference = resource.try(:to_reference) || resource.try(:id) title = resource.try(:title) || resource.try(:name) - "[#{reference} #{title}](#{url(resource)})" + "<#{url(resource)}|#{reference} #{title}>" end def header_with_list(header, items) |