A tool for working with CODEOWNERS files
npm install codeownersA tool for interacting with GitHub's
CODEOWNERS files.
Usable as a CLI, or as a library.
``sh`
$ npm install -g codeowners
Print a list of each files in the current repo, followed by its owner:
`sh`
$ codeowners audit
To find a list of files not covered by the CODEOWNERS in the project:
`sh`
$ codeowners audit --unowned
Specify a non-standard CODEOWNERS filename
`sh`
$ codeowners audit -c CODEKEEPERS
Verify users/teams own a specific path
`sh`
$ codeowners verify src/ @foob_ar @contoso/engineers
`js
const Codeowners = require('codeowners');
// workingDir is optional, defaults to process.cwd()
const repos = new Codeowners(workingDir);
repos.getOwner('path/to/file.js'); // => array of owner strings, e.g. ['@noahm']
`
- Much-improved performance
- Removal of automatic column width calculation
- Addition of -w/--width option for manual column widthcodeowners audit | column -ts " "`
- Or use e.g.