feat(channels): include event verb in ntfy title + smtp subject (#10)

Co-authored-by: Steve Cliff <steve@devcloud.guru>
Co-committed-by: Steve Cliff <steve@devcloud.guru>
This commit is contained in:
2026-05-04 22:25:38 +00:00
committed by steve
parent bc5ce12957
commit 85c62741b5
4 changed files with 38 additions and 7 deletions
+2 -2
View File
@@ -60,13 +60,13 @@ func TestNtfySendsHeadersAndBody(t *testing.T) {
t.Fatalf("want 200, got %d", code)
}
if want := "[critical] alfa-01 check_failed"; gotTitle != want {
if want := "[raised · critical] alfa-01 check_failed"; gotTitle != want {
t.Errorf("Title: got %q want %q", gotTitle, want)
}
if gotPri != "5" {
t.Errorf("Priority: got %q want \"5\"", gotPri)
}
if want := "critical,check_failed"; gotTags != want {
if want := "raised,critical,check_failed"; gotTags != want {
t.Errorf("Tags: got %q want %q", gotTags, want)
}
if gotClick != "https://rm.example/a" {