From c780cd69f5867acba6f3bcc2d2f0a8ad46bbb255 Mon Sep 17 00:00:00 2001 From: Simon Schrottner Date: Wed, 28 Jun 2023 14:59:25 +0200 Subject: [PATCH] Allowing TSC and GB to be approvers everywhere Signed-off-by: Simon Schrottner --- main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.go b/main.go index 7fcc106..29ad092 100644 --- a/main.go +++ b/main.go @@ -26,6 +26,8 @@ const ( Admins string = "admins" Maintainers string = "maintainers" Approvers string = "approvers" + TSC string = "technical-steering-committee" + GB string = "governance-board" ) type options struct { @@ -134,11 +136,15 @@ func loadOrgs(o options) (map[string]org.Config, error) { admins := getGlobalTeam(cfg, Admins) maintainers := getGlobalTeam(cfg, Maintainers) approvers := getGlobalTeam(cfg, Approvers) + tsc := getGlobalTeam(cfg, TSC) + gb := getGlobalTeam(cfg, GB) for name := range cfg.Repos { admins.Repos[name] = github.Admin maintainers.Repos[name] = github.Maintain approvers.Repos[name] = github.Write + tsc.Repos[name] = github.Write + gb.Repos[name] = github.Write cfg.Repos[name] = applyRepoDefaults(cfg, name) cfg.Repos[name] = enhanceUrl(cfg, name, o) @@ -147,6 +153,8 @@ func loadOrgs(o options) (map[string]org.Config, error) { cfg.Teams[Admins] = admins cfg.Teams[Maintainers] = maintainers cfg.Teams[Approvers] = approvers + cfg.Teams[TSC] = tsc + cfg.Teams[GB] = gb config[name] = *cfg } }