# config.yaml
# all available settings of specific linters
checks-settings:
owner:
# The owner and repository name separated by slash. Used to check if GitHub owner is in the given organization.
# (required)
repository: "gh-codeowners/codeowners-samples"
# Excluding configuration
exclude-rules: # support excluded only for some users so outside collaborators are not check but the rest are validated
# excluded for all as no owners provided
- rule: valid-definition
- rule: has-github-account
- rule: team-exists
# excluded only for a given owners
- rule: is-in-organization
owners:
- @owner1
- @owner2
- @owner3
Description
This tool was created a long time ago, and I already got a lot of feedback.
I plan to release the v1 once:
Such enhancements:
117
https://github.com/mszostok/codeowners-validator/issues/16 && https://github.com/mszostok/codeowners-validator/issues/73 This is important as this will change the way how validator is configured. It will give users a lot of freedom for customization ( with sensible defaults). Here we will move away from environment variables, and instead we will introduce support for YAML files configuration. Format is not yet defined, but to give you the overall idea, see:
Other:
49 to ensure no regression on v1.
Additionally, I would like to:
and an option to add/remove a given owner from CODEOWNERS files and create related PRs automatically. For example, with such (draft) config:
Pull requests will be created in dedicated repositories.
As a result, maybe this project will be changed to
codeowners-manager
or simplycodeowners
as the spectrum of responsibilities will be much wider:codeowners fmt
codeowners validate
codeowners add
# across repositoriescodeowners remove
# across repositoriescodeowners fix