Skip to content

areaLabelsForTitle

areaLabelsForTitle(title, scopes): string[]

Defined in: cli/cli/src/area-labels/area-labels-for-title/area-labels-for-title.ts:11

The area:<name> labels the scopes of an issue’s title earn, through repo.labels.scopes (spec tech-github-area-labels): feat(sentinel): ... gives ["area:sentinel"]. An issue has no changed files, so this is its only source of an area. A title with no scope, or a scope the map does not name, earns nothing; the same area from two scopes is given once, in the order of the title.

string

Record<string, string> | undefined

string[]