Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gitcode_dev
csdn-workflow
提交
ca1ad6e0
C
csdn-workflow
项目概览
gitcode_dev
/
csdn-workflow
通知
124
Star
11
Fork
5
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
csdn-workflow
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ca1ad6e0
编写于
4月 05, 2021
作者:
K
Kev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: rename 'Description' to 'Overview' in MR items
上级
f1b7979d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
7 deletion
+7
-7
src/data_providers/items/mr_item_model.ts
src/data_providers/items/mr_item_model.ts
+5
-5
test/integration/mr_review.test.js
test/integration/mr_review.test.js
+2
-2
未找到文件。
src/data_providers/items/mr_item_model.ts
浏览文件 @
ca1ad6e0
...
...
@@ -31,12 +31,12 @@ export class MrItemModel extends ItemModel {
}
async
getChildren
():
Promise
<
vscode
.
TreeItem
[]
>
{
const
description
=
new
vscode
.
TreeItem
(
'
Description
'
);
description
.
iconPath
=
new
vscode
.
ThemeIcon
(
'
note
'
);
description
.
command
=
{
const
overview
=
new
vscode
.
TreeItem
(
'
Overview
'
);
overview
.
iconPath
=
new
vscode
.
ThemeIcon
(
'
note
'
);
overview
.
command
=
{
command
:
PROGRAMMATIC_COMMANDS
.
SHOW_RICH_CONTENT
,
arguments
:
[
this
.
mr
,
this
.
workspace
.
uri
],
title
:
'
Show MR
'
,
title
:
'
Show MR
Overview
'
,
};
try
{
await
this
.
getMrDiscussions
();
...
...
@@ -51,7 +51,7 @@ export class MrItemModel extends ItemModel {
);
}
const
changedFiles
=
await
this
.
getChangedFiles
();
return
[
description
,
...
changedFiles
];
return
[
overview
,
...
changedFiles
];
}
private
async
getMrDiscussions
():
Promise
<
void
>
{
...
...
test/integration/mr_review.test.js
浏览文件 @
ca1ad6e0
...
...
@@ -66,7 +66,7 @@ describe('MR Review', () => {
assert
.
strictEqual
(
mrItem
.
label
,
'
!33824 · Web IDE - remove unused actions (mappings)
'
);
const
mrContent
=
await
dataProvider
.
getChildren
(
mrItemModel
);
assert
.
strictEqual
(
getTreeItem
(
mrContent
[
0
]).
label
,
'
Description
'
);
assert
.
strictEqual
(
getTreeItem
(
mrContent
[
0
]).
label
,
'
Overview
'
);
const
mrFiles
=
mrContent
.
slice
(
1
);
assert
.
deepStrictEqual
(
...
...
@@ -151,7 +151,7 @@ describe('MR Review', () => {
);
const
mrContent
=
await
dataProvider
.
getChildren
(
mrItemModel
);
assert
.
strictEqual
(
mrContent
[
0
].
label
,
'
Description
'
);
assert
.
strictEqual
(
mrContent
[
0
].
label
,
'
Overview
'
);
mrFiles
=
mrContent
.
slice
(
1
);
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录