Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
d1bf557a
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d1bf557a
编写于
12月 20, 2016
作者:
D
Douglas Barbosa Alexandre
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename MattermostNotificationService back to MattermostService
上级
fed29117
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
8 addition
and
8 deletion
+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
未找到文件。
app/models/project.rb
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
)
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录