Closed Corbie-42 closed 1 year ago
@Corbie-42 Were you not able to create a pre commit hook or are you looking for an example?
Why was this closed?
The author asked for a pre-commit
support which would require a pre-commit-hooks.yaml in this repository.
We are also looking for this without the need to define it ourselves.
User story. As a developer, I can make sure the API specifications I wrote are automatically checked, before I commit them.
Is your feature request related to a problem? I'm always frustrated when a pipeline that checks the API specification fails, because I did not run spectral before pushing my changes.
Describe the solution you'd like I would like to create a pre-commit hook in my project like this:
Additional context Vacuum (that is using spectral) has defined a .pre-commit-hooks.yaml in their project. This could be used as reference.