Skip to main content

Module ownership

Module ownership 

Source
Expand description

Owner-group reach of a changeset for the review brief.

Maps the changed files and the impact closure to CODEOWNERS owner groups: how many groups the change reaches, which groups it reaches only through the closure, and whether each independent slice of the partition has one owner. Reads the CODEOWNERS file only. It does not read git history, so it does not depend on the churn walk behind routing.

Advisory brief data; never gates.

Structs§

OwnerGroupFact
One owner group and how many files of the changeset it owns.
OwnershipFacts
How far a changeset reaches across CODEOWNERS owner groups.
OwnershipSliceFact
The owners of one independent slice of the partition.

Constants§

OWNER_GROUP_CAP
Maximum number of owner groups listed in OwnershipFacts::groups. The groups beyond the cap are the lightest ones and are counted in OwnershipFacts::groups_omitted.

Functions§

compute_ownership_facts
Compute the ownership section.
load_codeowners
Load the project CODEOWNERS file: the configured codeowners path when set, else the first of the standard locations.