BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
7d7e3dfa
Commit
7d7e3dfa
authored
Jan 23, 2017
by
Rémy Coutable
Committed by
James Lopez
Jan 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'zj-mattermost-fixes' into 'master'
Mattermost fixes See merge request !8654
parent
c6c28e6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
chat_notification_service.rb
app/models/project_services/chat_notification_service.rb
+7
-7
mattermost_service.rb
app/models/project_services/mattermost_service.rb
+1
-1
No files found.
app/models/project_services/chat_notification_service.rb
View file @
7d7e3dfa
...
...
@@ -82,19 +82,19 @@ class ChatNotificationService < Service
def
get_message
(
object_kind
,
data
)
case
object_kind
when
"push"
,
"tag_push"
PushMessage
.
new
(
data
)
ChatMessage
::
PushMessage
.
new
(
data
)
when
"issue"
IssueMessage
.
new
(
data
)
unless
is_update?
(
data
)
ChatMessage
::
IssueMessage
.
new
(
data
)
unless
is_update?
(
data
)
when
"merge_request"
MergeMessage
.
new
(
data
)
unless
is_update?
(
data
)
ChatMessage
::
MergeMessage
.
new
(
data
)
unless
is_update?
(
data
)
when
"note"
NoteMessage
.
new
(
data
)
ChatMessage
::
NoteMessage
.
new
(
data
)
when
"build"
BuildMessage
.
new
(
data
)
if
should_build_be_notified?
(
data
)
ChatMessage
::
BuildMessage
.
new
(
data
)
if
should_build_be_notified?
(
data
)
when
"pipeline"
PipelineMessage
.
new
(
data
)
if
should_pipeline_be_notified?
(
data
)
ChatMessage
::
PipelineMessage
.
new
(
data
)
if
should_pipeline_be_notified?
(
data
)
when
"wiki_page"
WikiPageMessage
.
new
(
data
)
ChatMessage
::
WikiPageMessage
.
new
(
data
)
end
end
...
...
app/models/project_services/mattermost_service.rb
View file @
7d7e3dfa
...
...
@@ -36,6 +36,6 @@ class MattermostService < ChatNotificationService
end
def
default_channel_placeholder
"
#
town-square"
"town-square"
end
end
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