Closed
Description
Description of the problem, including code/CLI snippet
Allow setting the allow_force_push
boolean attribute when creating protected branches.
Attribute is documented here:
https://docs.gitlab.com/ee/api/protected_branches.html#protect-repository-branches
And is missing from here:
https://github.com/python-gitlab/python-gitlab/blob/main/gitlab/v4/objects/branches.py#L35
Expected Behavior
Actual Behavior
Specifications
- python-gitlab version: 3.13.0
- API version you are using (v3/v4): v4
- Gitlab server version (or gitlab.com): gitlab.com