Skip to content

A script to check .github/CODEOWNERS, and a GitHub Action to install it

License

Notifications You must be signed in to change notification settings

zendesk/setup-check-codeowners

Repository files navigation

setup-check-codeowners

Latest Release Examples

A script to check .github/CODEOWNERS, and a GitHub Action to install it.

Features include:

  • lookups
    • given a file, find the owner
    • given an owner, find their files
  • coverage
    • find files which don't have a codeowner
    • find codeowner entries which don't match any files
  • linting
    • find invalid codeowner definitions
    • check codeowners are alphabetical
    • check consistent indents

See Usage for details.

Usage of the Github Action

This adds check-codeowners script to the PATH.

steps:
  - id: setup-check-codeowners
    uses: zendesk/setup-check-codeowners@VERSION

where VERSION is one of the repo tags

Script and Github Action Dependencies

Action Inputs

None.

Action Output

None.