Skip to content

escaton/compress-codeowners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compress-codeowners

  1. Run yarn to install all deps

  2. Get list of files of interest

    ./bin generate-files [-c CWD] \
        '**/*.(js|ts)' \
        '!**/node_modules' \
    > files.txt

    Check files.txt if that is ok Later you will need to put it in stdin for compress and diff command

  3. cat files.txt | ./bin compress <ORIGINAL_CODEOWNERS_PATH> <RESULT_PATH>
  4. To compare result with original CODEOWNERS, run

    cat files.txt | ./bin diff <ORIGINAL_CODEOWNERS_PATH> <RESULT_PATH>

    You can also get detailed report for specific team:

    cat files.txt | ./bin diff <ORIGINAL_CODEOWNERS_PATH> <RESULT_PATH> -t <team>

    And specific path: (note, files.txt is not needed in this case)

    ./bin diff <ORIGINAL_CODEOWNERS_PATH> <RESULT_PATH> <path>

About

Compress CODEOWNERS file to given size limit, minimizing mixed ownership

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published