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)