Skip to content

areaForScope

areaForScope(scope, scopes): string | undefined

Defined in: cli/cli/src/area-labels/area-for-scope/area-for-scope.ts:6

The area a title scope means, by repo.labels.scopes (spec tech-github-area-labels): sentinel gives the area it is mapped to. The scope is matched without regard to case; a scope the map does not name, or a repo with no map, gives undefined. It is the area’s name, not its label: areaLabelsForTitle() adds the prefix.

string

Record<string, string> | undefined

string | undefined