Add catch-all email group and platform filtering (#3)

- Add catch-all email group with admin-adam@modelcontextprotocol.io
- Add onlyOnPlatforms configuration to restrict groups to specific platforms
- Set antitrust and catch-all groups to Google only
- Groups default to all platforms when onlyOnPlatforms is not specified
This commit is contained in:
adam jones 2025-10-01 00:59:04 +01:00 • committed by GitHub
commit 0289b61df4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,12 +4,15 @@ function isValidGroupName(name: string): boolean {
return /^[a-z][a-z0-9-]*[a-z]$/.test(name);
}
export type Platform = 'github' | 'google';
export function defineGroups<
const T extends readonly {
name: Lowercase<string>;
description: string;
memberOf?: readonly (T[number]['name'])[];
isEmailGroup?: boolean;
onlyOnPlatforms?: readonly Platform[];
}[]
>(groups: T) {
for (const group of groups) {
@ -30,6 +33,7 @@ export interface Group {
description: string;
memberOf?: readonly GroupKey[];
isEmailGroup?: boolean;
onlyOnPlatforms?: readonly Platform[];
}
export interface Member {