chore: add pre-commit API check (#3120)
### Description This is a way of ensuring the schema is up to date with every change. This should be extended by fixing the PR api schema pipeline to squash down all PR commits into a single change and checking the API schema for that. Otherwise people will fix the schema after a failed pipeline and the pipeline will continue to fail
This commit is contained in:
parent
b1bdd6d9be
commit
267da9e438
|
@ -110,3 +110,11 @@ repos:
|
|||
pass_filenames: false
|
||||
language: script
|
||||
files: ^legacy
|
||||
|
||||
- id: api-schema-update
|
||||
name: api-schema-update
|
||||
description: Ensure API schema is up to date
|
||||
entry: make -C api schema
|
||||
pass_filenames: false
|
||||
language: system
|
||||
files: ^api
|
||||
|
|
Loading…
Reference in New Issue