Skip to content

Commit

Permalink
Add codeowners pre-commit check (#3570)
Browse files Browse the repository at this point in the history
Co-authored-by: sarayourfriend <[email protected]>
Co-authored-by: Krystle Salazar <[email protected]>
  • Loading branch information
3 people authored Jan 16, 2024
1 parent 288e93d commit 760cccb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,42 +1,49 @@
catalog/ @WordPress/openverse-catalog
archive/ @WordPress/openverse-catalog
# Specific assignments for the 'openverse-catalog' group
catalog/ @WordPress/openverse-catalog
archive/ @WordPress/openverse-catalog
dag-sync.sh @WordPress/openverse-catalog

api/ @WordPress/openverse-api
ingestion_server/ @WordPress/openverse-api
nginx/ @WordPress/openverse-api
postgres/ @WordPress/openverse-api
sample_data/ @WordPress/openverse-api
.flake8 @WordPress/openverse-api
.isort.cfg @WordPress/openverse-api
docker-compose.yml @WordPress/openverse-api
load_sample_data.sh @WordPress/openverse-api
pyproject.toml @WordPress/openverse-api

frontend/ @WordPress/openverse-frontend
packages/ @WordPress/openverse-frontend
.eslintignore @WordPress/openverse-frontend
.eslintrc.js @WordPress/openverse-frontend
.npmrc @WordPress/openverse-frontend
.pnpmfile.cjs @WordPress/openverse-frontend
.prettierignore @WordPress/openverse-frontend
package.json @WordPress/openverse-frontend
pnpm-lock.yaml @WordPress/openverse-frontend
pnpm-workspace.yaml @WordPress/openverse-frontend
prettier.config.js @WordPress/openverse-frontend
.prettierignore @WordPress/openverse-frontend
setup_plausible.sh @WordPress/openverse-frontend
tsconfig.base.json @WordPress/openverse-frontend

# Specific assignments for the 'openverse-maintainers' group
.codespell/ @WordPress/openverse-maintainers
.devcontainer/ @WordPress/openverse-maintainers
.github/ @WordPress/openverse-maintainers
automations/ @WordPress/openverse-maintainers
brand/ @WordPress/openverse-maintainers
dead_links/ @WordPress/openverse-maintainers
docker/ @WordPress/openverse-maintainers
documentation/ @WordPress/openverse-maintainers
readme_assets/ @WordPress/openverse-maintainers
templates/ @WordPress/openverse-maintainers
utilities/ @WordPress/openverse-maintainers
.dockerignore @WordPress/openverse-maintainers
.editorconfig @WordPress/openverse-maintainers
.git-blame-ignore-revs @WordPress/openverse-maintainers
.gitattributes @WordPress/openverse-maintainers
.gitignore @WordPress/openverse-maintainers
.github/ @WordPress/openverse-maintainers
.devcontainer/ @WordPress/openverse-maintainers
.pre-commit-config.yaml @WordPress/openverse-maintainers
CODE_OF_CONDUCT.md @WordPress/openverse-maintainers
CONTRIBUTING.md @WordPress/openverse-maintainers
justfile @WordPress/openverse-maintainers
LICENSE @WordPress/openverse-maintainers
README.md @WordPress/openverse-maintainers
docker-compose.yml @WordPress/openverse-maintainers
env.template @WordPress/openverse-maintainers
justfile @WordPress/openverse-maintainers
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,14 @@ repos:
- id: renovate-config-validator
args:
- --strict

- repo: local
hooks:
- id: codeowners-validator
name: CODEOWNERS validator
language: docker_image
pass_filenames: false
entry: >
-e REPOSITORY_PATH="."
-e CHECKS="files,duppatterns,syntax"
ghcr.io/mszostok/codeowners-validator:v0.7.4

0 comments on commit 760cccb

Please sign in to comment.