Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
dc995daf
Commit
dc995daf
authored
Dec 15, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Slack compatible syntax
parent
8ca5fef9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/gitlab/chat_commands/presenter.rb
lib/gitlab/chat_commands/presenter.rb
+4
-4
No files found.
lib/gitlab/chat_commands/presenter.rb
View file @
dc995daf
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment