We're using Bitbucket Cloud to develop a product and We'd like to trigger a validations when a commit is pushed or pull request created and automatically reject those if a policy not met.
i.e. prevent some files from being accidentally removed by a developer.