Im working on a small project which uses python-gitlab on its version 3.13.0
The project has a mixture of 2.x.x and 3.x.x features that i've been fixing, but there are a few methods for branches that i can't reproduce.
I saw a similar question for what im looking here stackoverflow-question, but the given answer suggests to use branch.unprotect(), and that method along with branch.protect() is no longer working on 3.x.x versions on.
I've been digging into the docs https://python-gitlab.readthedocs.io/en/stable/gl_objects/branches.html and https://python-gitlab.readthedocs.io/en/stable/gl_objects/protected_branches.html but haven't found a direct way to reproduce those methods, any ideas about that?
Thanks in advance!
Im running these methods inside a few tests on a ci/cd in Gitlab, already got tests to create repositories, branches, retrieve them and delete, but havent been able to reproduce the protect and unprotect branches.