@cnbcool/cnb-api-generate 2.16.1 → 2.16.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnbcool/cnb-api-generate",
3
- "version": "2.16.1",
3
+ "version": "2.16.3",
4
4
  "main": "./built/index.js",
5
5
  "module": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -26,6 +26,7 @@
26
26
  { "shortName": "add-labels", "realTool": "post-pull-labels", "description": "添加标签", "dataTip": "--labels ready --labels approved" },
27
27
  { "shortName": "check-status", "realTool": "list-pull-commit-statuses", "description": "查看 CI 状态" },
28
28
  { "shortName": "list-reviews", "realTool": "list-pull-reviews", "description": "查看评审列表" },
29
+ { "shortName": "submit-review", "realTool": "post-pull-review", "description": "发送评审评论或提交评审结论" },
29
30
  { "shortName": "list-assignees", "realTool": "list-pull-assignees", "description": "查看处理人" },
30
31
  { "shortName": "upload-file", "realTool": "upload-files", "description": "上传文件", "repoOnly": true, "upload": true, "kind": "file", "hideInSkill": true, "dataTip": "--file 文件路径" },
31
32
  { "shortName": "upload-image", "realTool": "upload-imgs", "description": "上传图片", "repoOnly": true, "upload": true, "kind": "image", "hideInSkill": true, "dataTip": "--file 图片路径" },
@@ -17,30 +17,6 @@ description: CNB 平台交互命令,支持代码仓库、Issue、PR、CI、制
17
17
  - **适用范围**:快捷命令仅限当前仓库的当前 Issue/PR,跨仓库或跨编号请参考 `更多 API`。
18
18
  - **提及与召唤**:评论中直接 @npc 会召唤 npc;仅提及不召唤时,用反引号包裹 `@npc`。
19
19
 
20
- ## PR 相关规范
21
-
22
- > 本节 PR 规范为默认约定,若项目另有规定,以项目规定为准。
23
-
24
- ### 标题
25
-
26
- - **一行表达**:采用语义化提交格式。
27
- - **只保留核心问题**:标题要简洁、可读、语义清晰。
28
- - **可读性**:影响可读性的信息禁止写入标题。
29
- - **禁止括号**:标题禁止出现括号,补充说明写描述区。
30
- - **禁止分支名**:标题禁止出现分支名(如 `hotfix/1.27.x`),目标分支由 PR base 表达。
31
-
32
- ### 描述
33
-
34
- - **关联引用**:需包含 `Ref: #<ISSUE_ID>`。
35
- - **关联信息**:关联信息和补充说明应该写进描述区,比如 `Ref #xxx`、`cherry-pick #xxx`、版本号、日期、作者等。
36
- - **cherry-pick**:目标版本写入 body 末尾。
37
-
38
- ### 提交流程
39
-
40
- - **提交后立即结束**:创建/推送 PR 后马上结束,不做其他操作。
41
- - **禁止轮询 CI 与评审**:不等待 CI 与评审状态;失败会自动唤起 NPC。
42
- - **禁止合并/关闭**:AI 不执行合并/关闭操作,合并交由人工完成。
43
-
44
20
  ## 常用链接
45
21
 
46
22
  生成链接时遵循以下结构: