Skip to content

Commit

Permalink
bugfix for case insensitive issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnnapora committed Aug 7, 2019
1 parent cbaf47b commit 39d106a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/main.js
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit 39d106a

Please sign in to comment.