Rejects pushes to stash when the commits contain invalid yaml files
Enabled on a per repository basis
You can enable/disable this plugin in the hooks settings on the repository.
A reject from the command line
This screen shot shows the explanation from the command line when attempting to push to the repository.
A reject from Sourcetree
This shows the reject of the push in a GUI application
This is a fail fast plugin. When the first invalid yaml file is encountered it fails without checking the rest of the file. At that point you can commit the fix and attempt another push, at which point it will run until if finds another invalid file where it will inform the user.
Privacy and security