- specify all mapping to lowercase with explicit en locale

This commit is contained in:
Mike Penz
2021-09-14 13:04:50 +02:00
parent 2deff3d4f5
commit 4580067a62
5 changed files with 30 additions and 20 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ const mapPullRequest = (
author: pr.user?.login || '',
repoName: pr.base.repo.full_name,
labels: new Set(
pr.labels?.map(lbl => lbl.name?.toLocaleLowerCase() || '') || []
pr.labels?.map(lbl => lbl.name?.toLocaleLowerCase('en') || '') || []
),
milestone: pr.milestone?.title || '',
body: pr.body || '',