mirror of
https://github.com/actions/stale.git
synced 2025-12-11 04:32:53 +00:00
@@ -8,7 +8,7 @@ import {isDateMoreRecentThan} from '../functions/dates/is-date-more-recent-than'
|
||||
import {isValidDate} from '../functions/dates/is-valid-date';
|
||||
import {isBoolean} from '../functions/is-boolean';
|
||||
import {isLabeled} from '../functions/is-labeled';
|
||||
import { cleanLabel } from '../functions/clean-label';
|
||||
import {cleanLabel} from '../functions/clean-label';
|
||||
import {shouldMarkWhenStale} from '../functions/should-mark-when-stale';
|
||||
import {wordsToList} from '../functions/words-to-list';
|
||||
import {IComment} from '../interfaces/comment';
|
||||
@@ -537,7 +537,9 @@ export class IssuesProcessor {
|
||||
const reversedEvents = events.reverse();
|
||||
|
||||
const staleLabeledEvent = reversedEvents.find(
|
||||
event => event.event === 'labeled' && cleanLabel(event.label.name) === cleanLabel(label)
|
||||
event =>
|
||||
event.event === 'labeled' &&
|
||||
cleanLabel(event.label.name) === cleanLabel(label)
|
||||
);
|
||||
|
||||
if (!staleLabeledEvent) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import deburr from 'lodash.deburr';
|
||||
import { CleanLabel } from '../types/clean-label';
|
||||
import {CleanLabel} from '../types/clean-label';
|
||||
|
||||
/**
|
||||
* @description
|
||||
@@ -10,5 +10,5 @@ import { CleanLabel } from '../types/clean-label';
|
||||
* @return {string} A lowercased, deburred version of the passed in label
|
||||
*/
|
||||
export function cleanLabel(label: Readonly<string>): CleanLabel {
|
||||
return deburr(label.toLowerCase());
|
||||
}
|
||||
return deburr(label.toLowerCase());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user