zendesk / setup-check-codeowners

A script to check .github/CODEOWNERS, and a GitHub Action to install it
MIT License
1 stars 2 forks source link

Rearrange code #15

Closed zdrve closed 2 years ago

zdrve commented 2 years ago

Trying to make the code a bit more maintainable. Note that the tests are essentially unchanged.

The second commit introduces two classes, "Parsers" and "repo", to wrap several of the methods which were previously cluttering "main".

There is also a new (as yet untested) feature, whereby CODEOWNERS can be in . or docs/ or .github/, as per https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-file-location