We're looking to implement a filename pattern pre-hook in Bitbucket.
The idea is to block files with names containing a pre-existing version number in another file.
for ex.
v123_file.txt (existing file)
v123_file2.txt (new file) == block
Any ideas how to achieve this?
Hi @Dani ,
I would suggest trying out the Protect git references pre-hook in ScriptRunner for Bitbucket, which is documented here: https://scriptrunner.adaptavist.com/6.6.0/bitbucket/PreReceiveHooks.html#_protect_git_references
To understand more about the pathsMatched methods mentioned in the Protect git references documentation, see the Overview page here: https://scriptrunner.adaptavist.com/6.6.0/bitbucket/
Please let me know if this helps resolve your question?
Kind regards,
Robert Giddings,
Product Manager, ScriptRunner for Bitbucket
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.