From a7ade81b6eb453a9568462b2060cb1d6b39cb632 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 23 Feb 2023 16:17:40 +0100 Subject: pkg/subsystem/linux: support custom subsystem grouping There are cases when a subsystem doesn't have a mailing list and yet we'd prefer not to merge it with others. Let's add the ability to add custom rules that join several specified MAINTAINERS records into one Subsystem. --- pkg/subsystem/linux/rules.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/subsystem/linux/rules.go') diff --git a/pkg/subsystem/linux/rules.go b/pkg/subsystem/linux/rules.go index 3ed8cf0fd..9282a7129 100644 --- a/pkg/subsystem/linux/rules.go +++ b/pkg/subsystem/linux/rules.go @@ -9,6 +9,9 @@ type customRules struct { // These emails do not represent separate subsystems, even though they seem to // per all criteria we have. notSubsystemEmails map[string]struct{} + // These subsystems need to be extracted even without mailing lists. + // Key is the subsystem name, value is the list of raw names in MAINTAINERS. + extraSubsystems map[string][]string } var ( @@ -64,5 +67,6 @@ var ( "coreteam@netfilter.org": {}, "SHA-cyfmac-dev-list@infineon.com": {}, }, + extraSubsystems: map[string][]string{}, } ) -- cgit mrf-deployment