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§
- Owner
Group Fact - One owner group and how many files of the changeset it owns.
- Ownership
Facts - How far a changeset reaches across CODEOWNERS owner groups.
- Ownership
Slice Fact - 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 inOwnershipFacts::groups_omitted.
Functions§
- compute_
ownership_ facts - Compute the ownership section.
- load_
codeowners - Load the project CODEOWNERS file: the configured
codeownerspath when set, else the first of the standard locations.