Create quality gate
stride.create_quality_gateCreate a quality gate in a Stride project. Required: projectId, name, criteria (array of { type, threshold, enabled? }; types: pass_rate, parity_pass_rate, max_critical_defects, min_test_coverage — see the criteria property for units). Optional: gateType (sprint|release|test_suite|process) plus the matching target id, validated against the project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| criteria | Yes | Criteria the /check evaluator scores. Preferred: an array of { type, threshold, enabled? }. Types and units: pass_rate (percent 0-100 of executed results that passed, >= threshold), parity_pass_rate (percent 0-100 of behavioural-parity links passing, >= threshold; fails closed when unmeasured), max_critical_defects (count of open CRITICAL defects, <= threshold), min_test_coverage (percent 0-100 of in-scope stories/cases with a live test, >= threshold). An unknown type never passes, and so does a criterion without a threshold. A bare object is stored verbatim for legacy callers. | |
| gateType | No | ||
| sprintId | No | Sprint UUID (must be in same project). | |
| processId | No | Process-definition UUID (must be in same project). | |
| projectId | Yes | Project UUID. | |
| releaseId | No | Release UUID (must be in same project). | |
| testSuiteId | No | Test-suite UUID (must be in same project). |