Description of the problem, including code/CLI snippet
The API /projects/:id/approval_rules/ has an additional attribute that allows us to apply the rule to all protected branches, rather than having to enumerate the branches we want it to apply it to. This is missing in the existing feature set.
See API spec: https://docs.gitlab.com/api/merge_request_approvals/#create-an-approval-rule-for-a-project
Specifications
- python-gitlab version: 0.8.1
- Gitlab server version (or gitlab.com): 18.x