Skip to content

Commit

Permalink
codeowners: extend documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vojtech Horky committed Sep 14, 2023
1 parent 5804c75 commit 17345dd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mx_codeowners.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,15 @@ def _git_get_repo_root_or_cwd():
Similarly, *.md files are owned by [email protected] and
[email protected].
These rules are applied to files in the same directory (i.e. same
as the one where this OWNERS.toml is stored) as well as to files
matching the pattern in subdirectories. The pattern can be
overridden by another OWNERS.toml in a subdirectory. In other words,
ownership tries to find first matching rule, starting with file
OWNERS.toml in current directory and traversing to parent ones.
Directories without OWNERS.toml are skipped and search continues
in their parent.
Note that we allow both explicit TOML arrays as well as implicit
separator of whitespace when specifying list of owners or list
of file patterns.
Expand Down

0 comments on commit 17345dd

Please sign in to comment.