forge_notify: explicit open/empty state, unknown states show raw value
This commit is contained in:
parent
8cc6306728
commit
da8a711a60
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue