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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
f31709dc
Commit
f31709dc
authored
Feb 20, 2020
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up code
- Remove unneeded requires - Use fork URL for comments
parent
ac8d1f74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
4 deletions
+1
-4
app/models/project_services/chat_message/base_message.rb
app/models/project_services/chat_message/base_message.rb
+0
-2
app/models/project_services/chat_message/pipeline_message.rb
app/models/project_services/chat_message/pipeline_message.rb
+0
-1
app/models/project_services/slack_service.rb
app/models/project_services/slack_service.rb
+1
-1
No files found.
app/models/project_services/chat_message/base_message.rb
View file @
f31709dc
# frozen_string_literal: true
require
'slack-messenger'
module
ChatMessage
class
BaseMessage
RELATIVE_LINK_REGEX
=
/!\[[^\]]*\]\((\/uploads\/[^\)]*)\)/
.
freeze
...
...
app/models/project_services/chat_message/pipeline_message.rb
View file @
f31709dc
# frozen_string_literal: true
require
'slack-messenger'
module
ChatMessage
class
PipelineMessage
<
BaseMessage
...
...
app/models/project_services/slack_service.rb
View file @
f31709dc
...
...
@@ -36,7 +36,7 @@ class SlackService < ChatNotificationService
private
def
notify
(
message
,
opts
)
# See https://git
hub.com/stevenosloan/slack-notifier
#custom-http-client
# See https://git
lab.com/gitlab-org/slack-notifier/
#custom-http-client
notifier
=
Slack
::
Messenger
.
new
(
webhook
,
opts
.
merge
(
http_client:
HTTPClient
))
notifier
.
ping
(
...
...
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