add_quality_gate
Insert a quality gate into a pipeline to block subsequent tasks until specified criteria are met. Define evaluation rules in JSON format.
Instructions
在 Pipeline 中添加质量门。质量门在指定 order_index 之后阻塞后续任务,直到评估通过。criteria 为 JSON 格式的检查规则。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| criteria | Yes | 评估规则(JSON 格式,如 {"type":"manual","check":"code_review"}) | |
| gate_name | Yes | 质量门名称 | |
| after_order | Yes | 在哪个 order_index 之后的任务需要等待此质量门通过 | |
| pipeline_id | Yes | Pipeline ID |