Bitbucket Scriptrunner Code to Prevent Deletion Branches

tolga August 9, 2023


I am checking bitbucket scriptrunner. I write simple codes like create project/repo, collect data from them. 

I want to write a code to "prevent Deletion" in Branches section of a Repository. I want to write it as pre-hook, and all existing and new branches can be modified to "prevent Deletion" option. Is it possible?

When I checked the permisssions or branches classes, I didn't find any solution of that.



0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events