Problem to solve
I would like to create merge request approval rules via the API. Unfortunately, I’m only able to create rule for all branches, not for specific ones. the api docs do not mention any way to specify the branch which should be protected by the new rule:
https://archives.docs.gitlab.com/17.11/api/merge_request_approvals/#create-project-approval-rule
Versions
GitLab v17.11.4-ee
Please add an x whether options apply, and add the version information.
- Self-managed
-
GitLab.comSaaS - Dedicated