- use toLocaleLowerCase to ensure we have proper locale dependent lowercase behavior

- ensure we also match the configuration case independent
This commit is contained in:
Mike Penz
2021-06-23 11:54:45 +02:00
parent 49aee4dc11
commit 4d47219031
5 changed files with 21 additions and 11 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ const mapPullRequest = (
repoName: pr.base.repo.full_name,
labels: new Set(
pr.labels?.map(function (label) {
return label.name?.toLowerCase() || ''
return label.name?.toLocaleLowerCase() || ''
}) || []
),
milestone: pr.milestone?.title || '',