Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket Scriptrunner Code to Prevent Deletion Branches

tolga
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 9, 2023

Hi,

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.

 

Thanks

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events