refactor: move and rename the interfaces/classes (#290)

closes #272
This commit is contained in:
Geoffrey Testelin
2021-02-13 12:09:37 +01:00
committed by GitHub
parent 9d6f46564a
commit e96f31f877
16 changed files with 282 additions and 275 deletions

View File

@@ -1,6 +1,6 @@
import deburr from 'lodash.deburr';
import {Issue} from '../classes/issue';
import {Label} from '../IssueProcessor';
import {ILabel} from '../interfaces/label';
import {CleanLabel} from '../types/clean-label';
/**
@@ -16,7 +16,7 @@ export function isLabeled(
issue: Readonly<Issue>,
label: Readonly<string>
): boolean {
return !!issue.labels.find((issueLabel: Readonly<Label>): boolean => {
return !!issue.labels.find((issueLabel: Readonly<ILabel>): boolean => {
return cleanLabel(label) === cleanLabel(issueLabel.name);
});
}