Skip to content

Commit 90afcad

Browse files
chore: update comments
Signed-off-by: Venkat <venkata@venkatamutyala.com>
1 parent 0dd0951 commit 90afcad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

connector/github/github.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ type org struct {
696696
func (c *githubConnector) teamsForOrg(ctx context.Context, client *http.Client, orgName string) ([]string, error) {
697697
apiURL, groups := c.apiURL+"/user/teams", []string{}
698698
for {
699-
// https://developer.github.com/v3/orgs/teams/#list-user-teams
699+
// https://docs.github.com/en/rest/teams/teams?apiVersion=2026-03-10#list-teams-for-the-authenticated-user
700700
var (
701701
teams []team
702702
err error
@@ -706,6 +706,7 @@ func (c *githubConnector) teamsForOrg(ctx context.Context, client *http.Client,
706706
}
707707

708708
for _, t := range teams {
709+
// case-insensitive check to avoid silent failures when config casing is different than GitHub
709710
if strings.EqualFold(t.Org.Login, orgName) {
710711
groups = append(groups, c.teamGroupClaims(t)...)
711712
}

0 commit comments

Comments
 (0)