We're running Bitbucket and Scriptrunner (hosted).
When my developers commit multiple files, some of which match a list of defined file types (lets say Java or JS file)
I want to test these file contents for a regex and if present or missing I want to block/reject the commit.
Ideally Serverside using Scriptrunner with a pre-commit hook.
How can this be done?