mirror of
https://github.com/actions/stale.git
synced 2025-12-27 10:48:18 +00:00
* Update github package * Update dist * Use @actions/github@5.0.1 * Cleanup * More cleanup
15 lines
410 B
TypeScript
15 lines
410 B
TypeScript
import deburr from 'lodash.deburr';
|
|
import {CleanLabel} from '../types/clean-label';
|
|
|
|
/**
|
|
* @description
|
|
* Clean a label by lowercasing it and deburring it for consistency
|
|
*
|
|
* @param {string} label A raw GitHub label
|
|
*
|
|
* @return {string} A lowercased, deburred version of the passed in label
|
|
*/
|
|
export function cleanLabel(label?: Readonly<string>): CleanLabel {
|
|
return deburr(label?.toLowerCase());
|
|
}
|