@cnbcool/cnb-api-generate 2.18.2 → 2.18.4
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 +6 -8
package/package.json
CHANGED
package/skills-template/SKILL.md
CHANGED
|
@@ -14,15 +14,14 @@ description: CNB 平台交互命令,支持代码仓库、Issue、PR、CI、制
|
|
|
14
14
|
- **默认摘要省流**:默认精简输出,加 `--verbose` 输出完整数据。
|
|
15
15
|
- **多行用单引号**:bash 参数为多行文本时用单引号,降低命令注入风险。
|
|
16
16
|
|
|
17
|
-
## issue
|
|
17
|
+
## issue/pr 访问说明
|
|
18
18
|
|
|
19
19
|
编号同 `--repo` 一样默认从环境变量识别,无需传递;用 `--repo <组织/仓库>`、`--number <编号>`
|
|
20
|
-
|
|
20
|
+
可覆盖。
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
可覆盖,例:`cnb pulls get --repo x/y --number 97`。
|
|
22
|
+
例如:
|
|
23
|
+
- `cnb issues get --number 66`
|
|
24
|
+
- `cnb pulls get --repo x/y --number 99`
|
|
26
25
|
|
|
27
26
|
## 图片与附件解析
|
|
28
27
|
|
|
@@ -31,8 +30,7 @@ description: CNB 平台交互命令,支持代码仓库、Issue、PR、CI、制
|
|
|
31
30
|
- 图片 `.../-/imgs/<issues|pulls>/<数字 ID>/<key>/<文件名>`
|
|
32
31
|
- 附件 `.../-/files/<issues|pulls>/<数字 ID>/<key>/<文件名>`
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
首位的数字 ID 段不能省,漏掉返回 `404`。
|
|
33
|
+
`图片路径/附件路径`=`<数字 ID>/<key>/<文件名>`,即 `参数` 取 `<issues|pulls>/` 之后的**完整尾段**。
|
|
36
34
|
|
|
37
35
|
## 常用链接
|
|
38
36
|
|