@cnbcool/cnb-api-generate 2.16.4 → 2.16.5
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 +12 -0
package/package.json
CHANGED
package/skills-template/SKILL.md
CHANGED
|
@@ -17,6 +17,18 @@ description: CNB 平台交互命令,支持代码仓库、Issue、PR、CI、制
|
|
|
17
17
|
- **范围限本仓**:快捷命令仅限当前仓库的当前 Issue/PR,跨仓库或跨编号请参考「更多 API」。
|
|
18
18
|
- **提及不召唤**:评论中直接 @npc 会召唤 npc;仅提及不召唤时,用反引号包裹 `@npc`。
|
|
19
19
|
|
|
20
|
+
## 取正文里的图片与附件
|
|
21
|
+
|
|
22
|
+
评论正文里的图片、附件 URL,一律用 `get-imgs` / `get-files` 取回。
|
|
23
|
+
|
|
24
|
+
- **不要裸 `curl`**:CLI 内置鉴权;
|
|
25
|
+
手写 `Authorization: Bearer` 或 `token` 都不被识别,只会拿到 400。
|
|
26
|
+
- **参数取 URL 的尾段**:
|
|
27
|
+
- 图片取 `/imgs/<issues|pulls>/` 之后的部分
|
|
28
|
+
- 附件取 `/files/<issues|pulls>/` 之后的部分
|
|
29
|
+
- **URL 从 `list-comments` 原文取**:
|
|
30
|
+
不要去 `find` 本地文件,也不要猜域名。
|
|
31
|
+
|
|
20
32
|
## 常用链接
|
|
21
33
|
|
|
22
34
|
生成链接时遵循以下结构:
|