From e5cb21c0e2bdd392cff11a0ac0440c7cb62f1dae Mon Sep 17 00:00:00 2001 From: jo Date: Tue, 28 Jun 2022 11:37:31 +0200 Subject: [PATCH] chore(api): add make schema-foreach-commit command --- api/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/Makefile b/api/Makefile index 1e3ad69c1..2c81bb1ca 100644 --- a/api/Makefile +++ b/api/Makefile @@ -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"