Discover Packages
github.com/ewhauser/ghsync
internal
codeowners
package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Aug 6, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package codeowners parses and resolves CODEOWNERS path rules without
applying any reviewer-ranking policy.
Match is the last rule that matched one repository-relative file path.
Resolve returns the owners from the last matching rule. Paths are matched
case-sensitively and are interpreted relative to the repository root.
Owner preserves one source token exactly while exposing its syntactic kind
and normalized lookup name.
OwnerType is the syntactic identity kind carried by an owner token.
Rule is one valid CODEOWNERS rule. Pattern is the source spelling, including
escapes; Line is one-based.
Parse applies the CODEOWNERS subset of gitignore syntax. Invalid pattern
lines are skipped, while malformed owner tokens on a valid rule are kept as
explicit OwnerMalformed facts.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.