From 12e22d6136d58cb285bf7c544d760d780537889d Mon Sep 17 00:00:00 2001 From: coreybutler <770982+coreybutler@users.noreply.github.com> Date: Sat, 24 Oct 2026 21:55:35 -0500 Subject: [PATCH] feat(notify): add Hotfixes toast collection Signed-off-by: Corey Butler <770982+coreybutler@users.noreply.github.com> --- notify/collections.go | 2 ++ notify/collections_test.go | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/notify/collections.go b/notify/collections.go index 97277c6..b2a5655 100644 --- a/notify/collections.go +++ b/notify/collections.go @@ -4,6 +4,7 @@ package notify // Assign a collection only when the user may mute that type. const ( CollectionReleases = "nvm.releases" + CollectionHotfixes = "nvm.hotfixes" CollectionPrereleases = "nvm.prereleases" CollectionNews = "nvm.news" ) @@ -24,6 +25,7 @@ const ( func LiveCollections() []struct{ ID, Name string } { return []struct{ ID, Name string }{ {CollectionReleases, "Releases"}, + {CollectionHotfixes, "Hotfixes"}, {CollectionPrereleases, "Pre-releases"}, {CollectionNews, "News"}, } diff --git a/notify/collections_test.go b/notify/collections_test.go index 610a291..c11dba9 100644 --- a/notify/collections_test.go +++ b/notify/collections_test.go @@ -4,10 +4,10 @@ import "testing" func TestLiveCollectionsIDs(t *testing.T) { got := LiveCollections() - if len(got) != 3 { - t.Fatalf("len = %d, want 3", len(got)) + if len(got) != 4 { + t.Fatalf("len = %d, want 4", len(got)) } - want := []string{CollectionReleases, CollectionPrereleases, CollectionNews} + want := []string{CollectionReleases, CollectionHotfixes, CollectionPrereleases, CollectionNews} for i, id := range want { if got[i].ID != id { t.Fatalf("LiveCollections[%d].ID = %q, want %q", i, got[i].ID, id)