@cnbcool/cnb-api-generate 1.2.2 → 1.2.3
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/package.json +1 -1
- package/skills-template/SKILL.md +11 -10
package/package.json
CHANGED
package/skills-template/SKILL.md
CHANGED
|
@@ -7,21 +7,22 @@ description: CNB OpenAPI 交互能力,支持仓库、Issue、PR、流水线、
|
|
|
7
7
|
|
|
8
8
|
操作 CNB 平台资源的 CLI 工具。
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## 快捷命令(优先使用)
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
issues 模块: get, list-comments, comment, close, open, list-labels, add-labels, list-assignees, add-assignees
|
|
13
|
+
pulls 模块: get, list-files, list-commits, list-comments, comment, list-labels, add-labels, check-status, list-reviews, list-assignees
|
|
14
14
|
|
|
15
|
-
用法: `<$CNB_CLI_CMD$>
|
|
16
|
-
|
|
15
|
+
用法: `<$CNB_CLI_CMD$> <module> <command>` — 路径参数已从环境变量自动注入,**禁止传入编号、slug 等位置参数**。
|
|
16
|
+
- ✅ `<$CNB_CLI_CMD$> issues get --summary` / `<$CNB_CLI_CMD$> issues list-comments`
|
|
17
|
+
- ✅ `<$CNB_CLI_CMD$> pulls get --summary` / `<$CNB_CLI_CMD$> pulls list-comments`
|
|
17
18
|
|
|
18
|
-
--summary
|
|
19
|
-
-
|
|
20
|
-
-
|
|
19
|
+
**仅需要获取摘要信息时加 --summary**,减少输出噪音:
|
|
20
|
+
- issues: get, close, open, add-assignees
|
|
21
|
+
- pulls: get, list-files, list-commits
|
|
21
22
|
|
|
22
23
|
仅以下命令需要 --data,其余快捷命令无需任何参数:
|
|
23
|
-
- comment: --data '{"body":"
|
|
24
|
-
- add-labels: --data '{"labels":["
|
|
24
|
+
- comment: --data '{"body":"内容"}'
|
|
25
|
+
- add-labels: --data '{"labels":["标签"]}'
|
|
25
26
|
- add-assignees(仅Issue): --data '{"assignees":["用户名"]}'
|
|
26
27
|
|
|
27
28
|
## 其他 API(快捷命令不满足时使用)
|