feat(catalog): map organizations to lower case
Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
@@ -348,7 +348,9 @@ export class GithubEntityProvider implements EntityProvider, EventSubscriber {
|
||||
}
|
||||
|
||||
private async onPush(event: PushEvent) {
|
||||
const organizations = await this.getOrganizations(); // TODO: make sure they are lowercase
|
||||
const organizations = (await this.getOrganizations()).map(org =>
|
||||
org.toLocaleLowerCase('en-US'),
|
||||
);
|
||||
const eventOrganization =
|
||||
event.organization?.login.toLocaleLowerCase('en-US');
|
||||
|
||||
@@ -435,7 +437,9 @@ export class GithubEntityProvider implements EntityProvider, EventSubscriber {
|
||||
}
|
||||
|
||||
private async onRepoChange(event: RepositoryEvent) {
|
||||
const organizations = await this.getOrganizations(); // TODO: make sure they are lowercase
|
||||
const organizations = (await this.getOrganizations()).map(org =>
|
||||
org.toLocaleLowerCase('en-US'),
|
||||
);
|
||||
const eventOrganization =
|
||||
event.organization?.login.toLocaleLowerCase('en-US');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user