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.
Hi Sabin - got any way on branch permission?
rest api 1.0.0 can lock the branch
i wrote a script, this might help.https://github.com/thinksabin/ReleaseManagementToolBox/tree/master/branch_locker_unlocker
It looks like you're new here. Sign in or register to get started.