CODEOWNERS GitHub CLI extension
Lint your CODEOWNERS file.
Usage
Render a list of errors based on the current branch's CODEOWNERS errors reported by GitHub:
gh codeowners lint
You can also get a sorted list of unknown owners or just return the raw JSON:
gh codeowners lint --unknown-owners
gh codeowners lint --json
To render your CODEOWNERS file with errors reported by GitHub:
gh codeowners view
Configuration
This extension will render colors whenever possible and, in some scenarios like when printing a list of errors,
maybe change the format to prefer colors over markers that may work better only for non-colored text.
You can override these colors on the command line (pass --help
for details) or permanently with a configuration file
located under your home directory on all platforms: ~/.config/gh-codeowners/config.yml
color:
comment: "#6A9955"
error: "#F44747"
License
Licensed under the MIT license.