Set design score actions
set_design_settingsSet a project's design deviance score threshold, CI failure above it, and autofix to control when actions trigger and whether fixes run automatically.
Instructions
Change what the design deviance score may do for one project: threshold (0–100), failCi (true fails mushi recipe check --push above the threshold) and autofix. Send at least one. An API key can turn autofix off but never on: turning it on lets the project spend on fixes by itself, so it needs a signed-in owner or admin in the console (403 otherwise). Project owners and admins only. Optional projectId. Returns the saved settings. Write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| failCi | No | true: `mushi recipe check --push` fails CI above the threshold | |
| autofix | No | false turns the design auto-fix off; an API key cannot turn it on | |
| projectId | No | Project UUID — defaults to the server-configured project when omitted (`project_id` is accepted too.) | |
| threshold | No | 0–100; the actions fire when the score is above it |