mirror of
https://github.com/actions/stale.git
synced 2025-12-10 03:57:04 +00:00
updated label comparison to be case insensitive
This commit is contained in:
@@ -80,7 +80,9 @@ function isLabeledStale(
|
|||||||
issue: Octokit.IssuesListForRepoResponseItem,
|
issue: Octokit.IssuesListForRepoResponseItem,
|
||||||
label: string
|
label: string
|
||||||
): boolean {
|
): 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(
|
function wasLastUpdatedBefore(
|
||||||
|
|||||||
Reference in New Issue
Block a user