Add an approval rule to a merge request
One step with GitLab. We can help you get access.
Get something done
Add an approval rule to a merge request
with GitLab
Works with AI assistants
Use GitLab: its GitLab REST Merge request approvals API lets you add an approval rule to a merge request in a single step (POST /api/v4/projects/{id}/merge_requests/{merge_request_iid}/approval_rules). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I require a certain number of approvals on a merge request?
- Can I copy an existing approval rule into a merge request?
Say it to your AI assistant
- Add an approval rule {name} requiring {approvals_required} approvals to merge request {merge_request_iid} in {id}.
- Create approval rule {name} on MR {merge_request_iid} in {id} with {approvals_required} approvals needed.
For your developer
POST /api/v4/projects/{id}/merge_requests/{merge_request_iid}/approval_rules in GitLab REST Merge request approvals API. Full spec on APIs.io.