You need to sign in or sign up before continuing.
Change approvals via API
Description
The current Merge Requests API allows approvers to approve or unapprove a merge request they are assigned to. However, there is currently no way to edit the number of required approvals or the list of approvers via the API.
Proposal
Add the following functionality to the Merge Requests API:
- When creating a merge request, extend the API to receive the following optional parameters:
- an int representing the number of require approvals
- an array of ints representing the id's of users/groups to be set as approvers (this might be two separate arrays for users and groups)
- When updating a merge request, extend the API to also receive the above parameters.
Overview
Our team currently uses a service to create and manage merge requests. We would like to be able to set the number of required approvals and the approvers themselves via the API when creating a merge request, rather than manually setting them via the UI after creating the merge request.
Edited by Victor Wu