@cnbcool/cnb-api-generate 2.21.1 → 2.21.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/shortcuts.ts +5 -1
- package/package.json +1 -1
- package/quick-commands.json +2 -2
package/client/shortcuts.ts
CHANGED
|
@@ -16,7 +16,11 @@ export interface ShortcutDefinition {
|
|
|
16
16
|
shortName: string;
|
|
17
17
|
/** 实际对应的 tool 文件名 */
|
|
18
18
|
realTool: string;
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* 为 true 时只注入 repo,不注入 number。
|
|
21
|
+
* CI 查询类命令(get-ci-logs / get-ci-timing)不得标记:其 number 会作为
|
|
22
|
+
* prNumber 参与查询,标记后会静默丢失 --number 的覆盖能力。
|
|
23
|
+
*/
|
|
20
24
|
repoOnly?: boolean;
|
|
21
25
|
/** 为 true 时表示是上传命令,走完整上传流程 */
|
|
22
26
|
upload?: boolean;
|
package/package.json
CHANGED
package/quick-commands.json
CHANGED
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
{ "shortName": "list-assignees", "realTool": "list-pull-assignees", "description": "查看处理人" },
|
|
32
32
|
{ "shortName": "upload-file", "realTool": "upload-files", "description": "上传文件", "repoOnly": true, "upload": true, "kind": "file", "hideInSkill": true, "dataTip": "--file 文件路径" },
|
|
33
33
|
{ "shortName": "upload-image", "realTool": "upload-imgs", "description": "上传图片", "repoOnly": true, "upload": true, "kind": "image", "hideInSkill": true, "dataTip": "--file 图片路径" },
|
|
34
|
-
{ "shortName": "get-ci-logs", "realTool": "__get-ci-logs__", "description": "获取 CI 失败日志", "
|
|
35
|
-
{ "shortName": "get-ci-timing", "realTool": "__get-ci-timing__", "description": "分析 CI 耗时瓶颈", "
|
|
34
|
+
{ "shortName": "get-ci-logs", "realTool": "__get-ci-logs__", "description": "获取 CI 失败日志", "custom": true, "dataTip": "--sn 构建号(可选)" },
|
|
35
|
+
{ "shortName": "get-ci-timing", "realTool": "__get-ci-timing__", "description": "分析 CI 耗时瓶颈", "custom": true, "dataTip": "--sn 构建号(可选)" },
|
|
36
36
|
{ "shortName": "get-imgs", "realTool": "get-pr-imgs", "description": "获取 PR 图片", "repoOnly": true, "dataTip": "--img-path 图片路径" },
|
|
37
37
|
{ "shortName": "get-files", "realTool": "get-pr-files", "description": "获取 PR 附件", "repoOnly": true, "dataTip": "--file-path 附件路径" }
|
|
38
38
|
],
|