fix(alerts): drop stand-down prefix on one-shot failures

This commit is contained in:
hh
2026-07-25 03:47:04 +02:00
parent 2cd3e64cee
commit 6bc97297b1
+12 -1
View File
@@ -17,6 +17,17 @@ INFORMATIONAL = frozenset(
}
)
FAILURE = frozenset(
{
"ProcedureFailed",
"ActionFailed",
"BuildFailed",
"RepoBuildFailed",
}
)
ONE_SHOT = INFORMATIONAL | FAILURE
def _gb(value: Any) -> str: # noqa: ANN401
try:
@@ -104,7 +115,7 @@ def format_alert(payload: dict) -> str:
inner = data.get("data") or {}
informational = kind in INFORMATIONAL
resolved = bool(payload.get("resolved")) and not informational
resolved = bool(payload.get("resolved")) and kind not in ONE_SHOT
if informational:
icon = ""