generate-codeowners

0.0.16 • Public • Published

Generate Codeowners

NPM

Original use case was to introduce CODEOWNERS-files within an organization with a large amount of repositories. The idea was to generate a file based on the Git-history.

Execute it with:

npx generate-codeowners

Parameters:

Usage: generate-codeowners [options]

Options:
  -gd, --gitdir <dir>                   Directory with Git repository. (default: "generate-codeowners")
  -s, --since <time>                    Same as Git:s <since> format. (default: "365.day.ago")
  -micc, --minimumcommitcount <number>  Ignore committers with less commits. (default: "0")
  -manc, --maximumnumberofcommitters    Include most active committers (default: "100")
                              <number>
  -id, --identifier <committerEmail|    What to add as identifer. (default: "committerEmail")
                    committerEmailUser|
                    committerName>
  -ii, --ignoreidentifiers <regexp>     Regexp to test against identifer. (default: "noreply")
  -cf, --codeownersfile <name>          The CODEOWNERS-file (default: "CODEOWNERS")
  -d, --dryrun                          Do not change anything, just print what would be changed. (default: false)
  -v, --version                         Display version (default: false)
  -h, --help                            display help for command

Readme

Keywords

Package Sidebar

Install

npm i generate-codeowners

Weekly Downloads

0

Version

0.0.16

License

Apache 2

Unpacked Size

27.2 kB

Total Files

9

Last publish

Collaborators

  • tomasbjerre