forge_notify: explicit open/empty state, unknown states show raw value

This commit is contained in:
damocles 2026-05-21 22:24:37 +02:00 committed by Mara
parent 8cc6306728
commit da8a711a60

View file

@ -195,7 +195,8 @@ async fn format_notification(
let kind = match notif_state {
"merged" => format!("{label} merged"),
"closed" => format!("{label} closed"),
_ => format!("new {label}"),
"open" | "" => format!("new {label}"),
other => format!("{label}: {other}"),
};
// Fetch subject only for body/author on new (open) items — not