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

how to use bitbucket api to set branch protection in a repo?

thinksabin August 9, 2017

Hi,

I want to set branch protection to a repo's branch so that nobody can push code in that branch. I can do that with the webUI by going into repo setting and then going to 'branch protection' link but I am looking to do that with the api so that i can script it for automation.
Is there any way or support in api to achieve this task?

 

thanks.

2 answers

0 votes
Daniel ThamizhSelvam P November 29, 2017

Hi Sabin - got any way on branch permission?

thinksabin July 24, 2019

rest api 1.0.0 can lock the branch

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events