From 90afcada2f71bcb097aca2f8523bcc47d64fb805 Mon Sep 17 00:00:00 2001 From: Venkat Date: Fri, 13 Mar 2026 21:18:30 +0000 Subject: [PATCH] chore: update comments Signed-off-by: Venkat --- connector/github/github.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connector/github/github.go b/connector/github/github.go index 68948af2..66694275 100644 --- a/connector/github/github.go +++ b/connector/github/github.go @@ -696,7 +696,7 @@ type org struct { func (c *githubConnector) teamsForOrg(ctx context.Context, client *http.Client, orgName string) ([]string, error) { apiURL, groups := c.apiURL+"/user/teams", []string{} for { - // https://developer.github.com/v3/orgs/teams/#list-user-teams + // https://docs.github.com/en/rest/teams/teams?apiVersion=2026-03-10#list-teams-for-the-authenticated-user var ( teams []team err error @@ -706,6 +706,7 @@ func (c *githubConnector) teamsForOrg(ctx context.Context, client *http.Client, } for _, t := range teams { + // case-insensitive check to avoid silent failures when config casing is different than GitHub if strings.EqualFold(t.Org.Login, orgName) { groups = append(groups, c.teamGroupClaims(t)...) }