The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events