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
2312262a
Commit
2312262a
authored
Dec 20, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename MattermostNotificationService back to MattermostService
parent
d9b29d37
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
8 deletions
+8
-8
app/models/project.rb
app/models/project.rb
+1
-1
app/models/project_services/mattermost_service.rb
app/models/project_services/mattermost_service.rb
+2
-2
app/models/service.rb
app/models/service.rb
+1
-1
lib/api/services.rb
lib/api/services.rb
+1
-1
spec/lib/gitlab/import_export/all_models.yml
spec/lib/gitlab/import_export/all_models.yml
+1
-1
spec/models/project_services/mattermost_service_spec.rb
spec/models/project_services/mattermost_service_spec.rb
+1
-1
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-1
No files found.
app/models/project.rb
View file @
2312262a
...
...
@@ -89,7 +89,7 @@ class Project < ActiveRecord::Base
has_one
:asana_service
,
dependent: :destroy
has_one
:gemnasium_service
,
dependent: :destroy
has_one
:mattermost_slash_commands_service
,
dependent: :destroy
has_one
:mattermost_
notification_
service
,
dependent: :destroy
has_one
:mattermost_service
,
dependent: :destroy
has_one
:slack_service
,
dependent: :destroy
has_one
:jenkins_service
,
dependent: :destroy
has_one
:jenkins_deprecated_service
,
dependent: :destroy
...
...
app/models/project_services/mattermost_
notification_
service.rb
→
app/models/project_services/mattermost_service.rb
View file @
2312262a
class
Mattermost
Notification
Service
<
ChatNotificationService
class
MattermostService
<
ChatNotificationService
def
title
'Mattermost notifications'
end
...
...
@@ -8,7 +8,7 @@ class MattermostNotificationService < ChatNotificationService
end
def
to_param
'mattermost
_notification
'
'mattermost'
end
def
help
...
...
app/models/service.rb
View file @
2312262a
...
...
@@ -222,7 +222,7 @@ class Service < ActiveRecord::Base
pivotaltracker
pushover
redmine
mattermost
_notification
mattermost
slack
teamcity
]
...
...
lib/api/services.rb
View file @
2312262a
...
...
@@ -492,7 +492,7 @@ module API
desc:
'The channel name'
}
],
'mattermost
-notification
'
=>
[
'mattermost'
=>
[
{
required:
true
,
name: :webhook
,
...
...
spec/lib/gitlab/import_export/all_models.yml
View file @
2312262a
...
...
@@ -145,8 +145,8 @@ project:
-
assembla_service
-
asana_service
-
gemnasium_service
-
mattermost_notification_service
-
slack_service
-
mattermost_service
-
buildkite_service
-
bamboo_service
-
teamcity_service
...
...
spec/models/project_services/mattermost_
notification_
service_spec.rb
→
spec/models/project_services/mattermost_service_spec.rb
View file @
2312262a
require
'spec_helper'
describe
Mattermost
Notification
Service
,
models:
true
do
describe
MattermostService
,
models:
true
do
it_behaves_like
"slack or mattermost"
end
spec/models/project_spec.rb
View file @
2312262a
...
...
@@ -22,8 +22,8 @@ describe Project, models: true do
it
{
is_expected
.
to
have_many
(
:protected_branches
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_many
(
:chat_services
)
}
it
{
is_expected
.
to
have_one
(
:forked_project_link
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:mattermost_notification_service
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:slack_service
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:mattermost_service
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:pushover_service
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:asana_service
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_many
(
:boards
).
dependent
(
:destroy
)
}
...
...
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