Apply to onMembershipChangedInTeam

Signed-off-by: Scott Guymer <scott.guymer@philips.com>
This commit is contained in:
Scott Guymer
2025-07-22 17:32:19 +02:00
parent c518ecb15b
commit 412c4660f0
2 changed files with 4 additions and 20 deletions
@@ -2306,23 +2306,7 @@ describe('GithubMultiOrgEntityProvider', () => {
organization: {
teams: {
pageInfo: { hasNextPage: false },
nodes: [
{
slug: 'team',
combinedSlug: 'orgA/team',
name: 'TeamA',
description: 'The one and only team',
avatarUrl: 'http://example.com/team.jpeg',
editTeamUrl: 'https://example.com',
parentTeam: {
slug: 'parent',
},
members: {
pageInfo: { hasNextPage: false },
nodes: [],
},
},
],
nodes: [],
},
},
})
@@ -801,15 +801,15 @@ export class GithubMultiOrgEntityProvider implements EntityProvider {
headers: orgHeaders,
});
const { teams } = await getOrganizationTeamsFromUsers(
const { teams } = await getOrganizationTeamsForUser(
orgClient,
userOrg,
[login],
login,
this.defaultMultiOrgTeamTransformer.bind(this),
);
if (areGroupEntities(teams)) {
assignGroupsToUsers([user], teams);
assignGroupsToUser(user, teams);
}
}