@coda-console/protocol 3.0.0 → 3.1.0
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/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/schemas/plugin/setting.json +1 -1
- package/workflow/dialect.json +2 -1
- package/workflow/values.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ fieldsProblem(JSON.parse(fieldsJSON), 'ask');
|
|
|
80
80
|
|
|
81
81
|
## 项目中的多选选项
|
|
82
82
|
|
|
83
|
-
设置的 `items.anyOf` 选项可附带 `workflowKind`(`check`、`premerge`、`deploy`、`preview`、`release`)。全局设置显示全部选项;项目设置只显示该项目有的流程类别,未写此字段的选项始终显示。宿主负责按项目提供可选项,流程执行时仍需按运行的提交判断可用操作。
|
|
83
|
+
设置的 `items.anyOf` 选项可附带 `workflowKind`(`check`、`premerge`、`prebuild`、`deploy`、`preview`、`release`)。全局设置显示全部选项;项目设置只显示该项目有的流程类别,未写此字段的选项始终显示。宿主负责按项目提供可选项,流程执行时仍需按运行的提交判断可用操作。
|
|
84
84
|
|
|
85
85
|
## 输入框模式
|
|
86
86
|
|
package/package.json
CHANGED
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"const": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$"},
|
|
169
169
|
"title": {"type": "string", "maxLength": 400},
|
|
170
170
|
"description": {"type": "string", "maxLength": 400},
|
|
171
|
-
"workflowKind": {"description": "在项目设置里只在该项目有这一类流程时显示;全局设置列出全部选项", "enum": ["check", "premerge", "deploy", "preview", "release"]}
|
|
171
|
+
"workflowKind": {"description": "在项目设置里只在该项目有这一类流程时显示;全局设置列出全部选项", "enum": ["check", "premerge", "prebuild", "deploy", "preview", "release"]}
|
|
172
172
|
},
|
|
173
173
|
"required": ["const"],
|
|
174
174
|
"additionalProperties": false
|
package/workflow/dialect.json
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
"preview": "发布预览版客户端;只跑合并进默认分支的提交",
|
|
6
6
|
"release": "发布正式版客户端;只跑合并进默认分支的提交",
|
|
7
7
|
"check": "检查一个提交,PR 的流程在评审前调用;任何提交都能跑",
|
|
8
|
-
"premerge": "合并前检查:批准合并后,在要合并的提交上只跑一次;任何提交都能跑"
|
|
8
|
+
"premerge": "合并前检查:批准合并后,在要合并的提交上只跑一次;任何提交都能跑",
|
|
9
|
+
"prebuild": "预编:开发流程推出执行者的提交后,在审查的同时调用一次、不等它的结果,为随后验收要装的客户端先编好;任何提交都能跑"
|
|
9
10
|
},
|
|
10
11
|
"deploying": ["deploy", "preview", "release"],
|
|
11
12
|
"events": {
|
package/workflow/values.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"concurrency": {"type": "string", "minLength": 1, "maxLength": 200, "description": "coda:concurrency 须为 1–200 个字符"},
|
|
11
11
|
"key": {"type": "string", "pattern": "\\S", "maxLength": 4000, "x-feel": {"names": ["inputs", "github", "vars"]}, "description": "coda:key 须为 1–4000 个字符"},
|
|
12
12
|
"title": {"type": "string", "pattern": "\\S", "maxLength": 200, "x-feel": true, "description": "coda:title 须为 1–200 个字符"},
|
|
13
|
-
"kind": {"enum": ["deploy", "preview", "release", "check", "premerge"], "description": "coda:kind 只能是 deploy、preview、release、check、premerge"},
|
|
13
|
+
"kind": {"enum": ["deploy", "preview", "release", "check", "premerge", "prebuild"], "description": "coda:kind 只能是 deploy、preview、release、check、premerge、prebuild"},
|
|
14
14
|
"agents": {"type": "string", "pattern": "^[\\s,]*[a-z][a-z0-9-]{0,39}(?:[\\s,]+[a-z][a-z0-9-]{0,39})*[\\s,]*$",
|
|
15
15
|
"description": "coda:agents 写 Agent 的 ID,用逗号或空格分隔(小写字母、数字和「-」,以字母开头,至多 40 个字符),不能为空"}
|
|
16
16
|
}
|