A script to check .github/CODEOWNERS
, and a GitHub Action to install it.
Features include:
- lookups
- given a file, find the owner
- given an owner, find their files
- coverage
- find files which don't have a codeowner
- find codeowner entries which don't match any files
- linting
- find invalid codeowner definitions
- check codeowners are alphabetical
- check consistent indents
See Usage for details.
This adds check-codeowners
script to the PATH
.
steps:
- id: setup-check-codeowners
uses: zendesk/setup-check-codeowners@VERSION
where VERSION
is one of the repo tags
- Ruby (in Github Actions zendesk/setup-ruby action can install it)
- Git
None.
None.