mszostok / codeowners-validator

The GitHub CODEOWNERS file validator
Apache License 2.0
219 stars 47 forks source link

Add not owned file checker #8

Closed mszostok closed 4 years ago

mszostok commented 4 years ago

Description

This check is enabled when the EXPERIMENTAL_CHECKS="notowned" is specified. You can also define NOT_OWNED_CHECKER_SKIP_PATTERNS="*". As a result, the * pattern from the CODEOWNERS file will be ignored and you will see not owned files unless a later match takes precedence. It's useful because often we have default owners entry

# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
*       @global-owner1 @global-owner2

but this should be a rare case that default owners are assigned.