AutoMerge can now read your production health
AutoMerge can now judge a pull request by its code and by the live state of the component it changes. Criteria can read your Dash0 check rules and SLOs before AutoMerge approves or merges.
A small, well-tested change can still be the wrong change to ship right now. If the service it touches is already failing a check or burning through its error budget, a merge adds one more moving part to an incident.
AutoMerge can now tell the difference. Give a criterion the two new tools, and next to the code it reads the live health of the component the pull request changes, straight from the check rules and SLOs you already run in Dash0. Your code and your production state finally meet in one decision.
Two new evaluator tools
Criteria get two tools under Production health in the Tools picker.
- Check rule status finds the check rules in the repository's datasets, including the ones failing right now, and reads whether the rules a criterion names are enabled and failing, worst first.
- SLO status finds the repository's SLOs and reads the remaining error budget, the fast and slow burn rates and the success ratio of the ones a criterion names.
You don't have to list a single rule or SLO. Tell the criterion to find the components a pull request changes, and AutoMerge works out the rest. It maps each changed path to its component, reads the service name that component reports under, and searches your check rules and SLOs by that name. A change under components/checkout-api/ gets checked against the rules and SLOs that watch checkout-api. Give the criterion a floor, and AutoMerge holds the pull request whenever that component is unhealthy, however clean the diff.

Merge when the service is ready
Low-risk code can still merge on its own. AutoMerge just waits for a healthy moment. When the check rule resolves and the burn rate settles, run the evaluation again on the same commit, and AutoMerge approves and merges it with the full picture.
Each decision on the Pull requests tab shows the evidence behind the Production health score, so your reviewers see which rule or SLO held a change back.
Read Evaluator Tools to add the tools to a criterion, or open AutoMerge to set up your first Production health criterion.

