From 9ad2bf1e3050e7fa9e734d38a1a07774a76ba87a Mon Sep 17 00:00:00 2001 From: Shawn Napora <17864647+shawnnapora@users.noreply.github.com> Date: Tue, 6 Aug 2019 18:29:11 -0400 Subject: [PATCH] updated label comparison to be case insensitive --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 6c4d799b..5443f0e0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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(