updated label comparison to be case insensitive

This commit is contained in:
Shawn Napora 2019-08-06 18:29:11 -04:00
parent 552417765d
commit 9ad2bf1e30
1 changed files with 3 additions and 1 deletions

View File

@ -80,7 +80,9 @@ function isLabeledStale(
issue: Octokit.IssuesListForRepoResponseItem,
label: string
): boolean {
return issue.labels.filter(i => i.name === label).length > 0;
const labelComparer = l =>
label.localeCompare(l.name, undefined, {sensitivity: 'accent'});
return issue.labels.filter(labelComparer).length > 0;
}
function wasLastUpdatedBefore(