bugfix for case insensitive issues

This commit is contained in:
Shawn Napora 2019-08-07 10:46:15 -04:00
parent cbaf47b85d
commit 39d106ae30
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ function processIssues(client, args, operationsLeft, page = 1) {
let isPr = !!issue.pull_request;
let staleMessage = isPr ? args.stalePrMessage : args.staleIssueMessage;
if (!staleMessage) {
core.debug(`skipping ${isPr ? "pr" : "issue"} due to empty message`);
core.debug(`skipping ${isPr ? 'pr' : 'issue'} due to empty message`);
continue;
}
let staleLabel = isPr ? args.stalePrLabel : args.staleIssueLabel;
@ -72,7 +72,7 @@ function processIssues(client, args, operationsLeft, page = 1) {
});
}
function isLabeledStale(issue, label) {
const labelComparer = l => label.localeCompare(l.name, undefined, { sensitivity: 'accent' });
const labelComparer = l => label.localeCompare(l.name, undefined, { sensitivity: 'accent' }) === 0;
return issue.labels.filter(labelComparer).length > 0;
}
function wasLastUpdatedBefore(issue, num_days) {