chore(catalog): rename organizations to configOrganizations

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2025-08-14 14:58:22 +02:00
parent 2879dcc157
commit db5bd4a244
@@ -348,13 +348,16 @@ export class GithubEntityProvider implements EntityProvider, EventSubscriber {
}
private async onPush(event: PushEvent) {
const organizations = (await this.getOrganizations()).map(org =>
const configOrganizations = (await this.getOrganizations()).map(org =>
org.toLocaleLowerCase('en-US'),
);
const eventOrganization =
event.organization?.login.toLocaleLowerCase('en-US');
if (!eventOrganization || !organizations.includes(eventOrganization)) {
if (
!eventOrganization ||
!configOrganizations.includes(eventOrganization)
) {
this.logger.debug(
`skipping push event from organization ${event.organization?.login}`,
);
@@ -437,13 +440,16 @@ export class GithubEntityProvider implements EntityProvider, EventSubscriber {
}
private async onRepoChange(event: RepositoryEvent) {
const organizations = (await this.getOrganizations()).map(org =>
const configOrganizations = (await this.getOrganizations()).map(org =>
org.toLocaleLowerCase('en-US'),
);
const eventOrganization =
event.organization?.login.toLocaleLowerCase('en-US');
if (!eventOrganization || !organizations.includes(eventOrganization)) {
if (
!eventOrganization ||
!configOrganizations.includes(eventOrganization)
) {
this.logger.debug(
`skipping repository event from organization ${event.organization?.login}`,
);