From 81583f2a55d25fcba3454f60a979dfd3a8c67f5c Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 7 May 2024 12:03:10 +0200 Subject: pkg/subsystem: don't Cc some parent subsystems Our fs is more generic than it was defined in MAINTAINERS. Let's not spam its mailing lists with bugs from individual filesystem implementations. --- pkg/subsystem/entities.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pkg/subsystem/entities.go') diff --git a/pkg/subsystem/entities.go b/pkg/subsystem/entities.go index 338447ad4..493f2fe67 100644 --- a/pkg/subsystem/entities.go +++ b/pkg/subsystem/entities.go @@ -10,8 +10,10 @@ type Subsystem struct { Lists []string Maintainers []string Parents []*Subsystem - // If NoReminders is set to true, there should be no monthly reports for the subsystem. + // If NoReminders is true, there should be no monthly reports for the subsystem. NoReminders bool + // If NoIndirectCc is true, the subsystem lists are not tagged in sub-subsystem reports. + NoIndirectCc bool } // ReachableParents returns the set of subsystems reachable from the current one. @@ -41,7 +43,9 @@ func (subsystem *Subsystem) Emails() []string { ret = append(ret, subsystem.Maintainers...) // For its parent subsystems, we only take lists. for parent := range subsystem.ReachableParents() { - ret = append(ret, parent.Lists...) + if !parent.NoIndirectCc { + ret = append(ret, parent.Lists...) + } } return ret } -- cgit mrf-deployment