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
d1bf557a
Commit
d1bf557a
authored
Dec 20, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename MattermostNotificationService back to MattermostService
parent
fed29117
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
8 deletions
+8
-8
project.rb
app/models/project.rb
+1
-1
mattermost_service.rb
app/models/project_services/mattermost_service.rb
+2
-2
service.rb
app/models/service.rb
+1
-1
services.rb
lib/api/services.rb
+1
-1
all_models.yml
spec/lib/gitlab/import_export/all_models.yml
+1
-1
mattermost_service_spec.rb
spec/models/project_services/mattermost_service_spec.rb
+1
-1
project_spec.rb
spec/models/project_spec.rb
+1
-1
No files found.
app/models/project.rb
View file @
d1bf557a
...
...
@@ -94,7 +94,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_slash_commands_service
,
dependent: :destroy
has_one
:slack_service
,
dependent: :destroy
has_one
:buildkite_service
,
dependent: :destroy
...
...
app/models/project_services/mattermost_
notification_
service.rb
→
app/models/project_services/mattermost_service.rb
View file @
d1bf557a
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 @
d1bf557a
...
...
@@ -216,7 +216,7 @@ class Service < ActiveRecord::Base
jira
kubernetes
mattermost_slash_commands
mattermost
_notification
mattermost
pipelines_email
pivotaltracker
pushover
...
...
lib/api/services.rb
View file @
d1bf557a
...
...
@@ -500,7 +500,7 @@ module API
desc:
'The channel name'
}
],
'mattermost
-notification
'
=>
[
'mattermost'
=>
[
{
required:
true
,
name: :webhook
,
...
...
spec/lib/gitlab/import_export/all_models.yml
View file @
d1bf557a
...
...
@@ -138,7 +138,7 @@ project:
-
asana_service
-
gemnasium_service
-
slack_service
-
mattermost_
notification_
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 @
d1bf557a
require
'spec_helper'
describe
Mattermost
Notification
Service
,
models:
true
do
describe
MattermostService
,
models:
true
do
it_behaves_like
"slack or mattermost notifications"
end
spec/models/project_spec.rb
View file @
d1bf557a
...
...
@@ -22,7 +22,7 @@ describe Project, models: true do
it
{
is_expected
.
to
have_many
(
:protected_branches
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:forked_project_link
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:slack_service
).
dependent
(
:destroy
)
}
it
{
is_expected
.
to
have_one
(
:mattermost_
notification_
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