Skip to content

_action_for

Internal helper
This page documents an internal implementation helper, not a primary public API.
Source code in src/fabricops_kit/quality.py
1021
1022
1023
1024
def _action_for(status: str, severity: str) -> str:
    if status in {"passed", "skipped"}:
        return "allow"
    return CONTRACT_SEVERITY_TO_ACTION.get(severity, "block")