Documentation
¶
Overview ¶
Package ownership reports who owns a repo, as the repo itself says it: the owners a CODEOWNERS file names, and the entities a Backstage catalog-info.yaml describes (name, kind, type, owner, system, lifecycle). Every fact points at the lines that say it. Nothing is guessed: an owner nobody wrote down is not reported. See https://cernly.dev/how/ownership/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Catalog ¶
Catalog reads a Backstage catalog file: one catalog_entity fact per backstage.io entity, keyed by its entity reference (kind:namespace/name). Location entities only point at other files and are left out; so are scaffolder skeletons whose name is still a ${{ }} placeholder.
func Codeowners ¶
Codeowners reads one CODEOWNERS file: one owner fact per owner it names, with the patterns they own in file order and every line that names them. GitLab sections ([Name] @default-owners) give their owners to entries without their own. Owners are compared without case, as the forges do.