@cnbcool/cnb-api-generate 2.18.9 → 2.18.11
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/lib/exit-code.ts
CHANGED
|
@@ -38,7 +38,7 @@ export function isHttpSuccess(status: number | undefined): boolean {
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* 按统一策略处理一次 API 调用结果:
|
|
41
|
-
* - 非 2xx 响应把退出码置为
|
|
41
|
+
* - 非 2xx 响应把退出码置为 `EXIT_CODE_HTTP_ERROR`(3,不抛错,输出照旧)。
|
|
42
42
|
* - 拿不到 status(converter 返回的裸 data)时不误判失败。
|
|
43
43
|
*
|
|
44
44
|
* @param response 响应对象(含 status)
|
package/package.json
CHANGED
package/skills-template/SKILL.md
CHANGED
|
@@ -37,6 +37,11 @@ description: CNB 平台交互命令,支持代码仓库、Issue、PR、CI、制
|
|
|
37
37
|
- Issue: `<host>/<slug>/-/issues/<number>`
|
|
38
38
|
- PR: `<host>/<slug>/-/pulls/<number>`
|
|
39
39
|
|
|
40
|
+
## 正文中引用 Issue / PR
|
|
41
|
+
|
|
42
|
+
- 当前仓库:`#<number>`
|
|
43
|
+
- 跨仓库:`<slug>#<number>`(如 `x/y#101`)
|
|
44
|
+
|
|
40
45
|
## 更多 API
|
|
41
46
|
|
|
42
47
|
1. `cnb --help` 查看所有模块
|