chore(api): add make schema-foreach-commit command

This commit is contained in:
jo 2022-06-28 11:37:31 +02:00 committed by Kyle Robbertze
parent df9a6edf88
commit e5cb21c0e2
1 changed files with 3 additions and 0 deletions

View File

@ -20,3 +20,6 @@ schema: $(VENV)
source $(VENV)/bin/activate
DJANGO_SETTINGS_MODULE=libretime_api.settings.testing libretime-api spectacular --file $(SCHEMA_FILE)
if command -v npx > /dev/null; then npx prettier --write $(SCHEMA_FILE); fi
schema-foreach-commit:
git rebase main -x "$(MAKE) -C api schema"