import deburr from 'lodash.deburr'; import {Issue, Label} from '../IssueProcessor'; /** * @description * Check if the label is listed as a label of the issue * * @param {Readonly} issue A GitHub issue containing some labels * @param {Readonly} label The label to check the presence with * * @return {boolean} Return true when the given label is also in the issue labels */ export function isLabeled( issue: Readonly, label: Readonly ): boolean { return !!issue.labels.find((issueLabel: Readonly