Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/unsight.dev. Detect duplicate GitHub issues, areas of concern and more across related repositories. unsight.dev
ai clustering github machine-learning
Something went wrong. Try again.
304 B · 7 lines
TypeScript
at commit 54c1c85f
12345678import type { RestEndpointMethodTypes } from '@octokit/rest'
export type Issue = RestEndpointMethodTypes['issues']['get']['response']['data']
export function getLabels(issue: Issue) { return issue.labels.map(label => (typeof label === 'string' ? label : label.name!).toLowerCase()).filter(Boolean)}