Skip to content

Commit bddd2df

Browse files
committed
* docs(skill): add parameter completion for update operations in SKILL.md
- Introduced a new section detailing the requirement for confirming all necessary parameters before executing an `update` operation. - Added instructions for retrieving object details using `zentao <module> <id> --format=json` to ensure all required fields are populated.
1 parent 3727d3c commit bddd2df

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

skills/zentao-cli/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ zentao bug 42 # 查看具体 Bug
140140

141141
执行创建、更新、删除等写操作前,先向用户确认操作内容。用户明确要求不确认时可跳过。
142142

143+
### 更新操作补全参数
144+
145+
执行 `update` 操作前,如果用户没有提供该对象更新操作所需的所有属性参数,先执行 `zentao <module> <id> --format=json` 获取对象详细信息,再结合用户明确要修改的字段,确保 `update` 所需的所有参数都有值。
146+
143147
## 数据处理
144148

145149
### 摘取字段

0 commit comments

Comments
 (0)