diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-05-07 12:03:10 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-05-07 10:41:44 +0000 |
| commit | 81583f2a55d25fcba3454f60a979dfd3a8c67f5c (patch) | |
| tree | 7d84d33c7182b83f2c88654f23180c714181a200 /pkg/subsystem/entities.go | |
| parent | 0955da9e52431ca2d6b2d55a41b72018726799d5 (diff) | |
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.
Diffstat (limited to 'pkg/subsystem/entities.go')
| -rw-r--r-- | pkg/subsystem/entities.go | 8 |
1 files changed, 6 insertions, 2 deletions
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 } |
