[MergeRequest API] Possibility to update `approvals_before_merge` for existing MRs
gitlab-org/gitlab-ce~14213
Use case
Given a developer opens a merge request to the master branch
When the MR's changeset contains a programmatic database schema change
Then update the approvals_before_merge
of the given MR to 2
Proposal
Update the PUT /projects/:id/merge_requests/:merge_request_id
resource with the approvals_before_merge
with following parameters:
- id (required) - The ID of a project
- merge_request_id (required) - ID of MR
- target_branch - The target branch
- assignee_id - Assignee user ID
- title - Title of MR
- description - Description of MR
- state_event - New state (close|reopen|merge)
- labels (optional) - Labels for MR as a comma-separated list
- milestone_id (optional) - Milestone ID
- approvals_before_merge (optional) - Number of approvals required before this can be merged (see below)
It could behave exactly as the constraints that are given with the Create MR
resource.
Links / references
Edited by 🤖 GitLab Bot 🤖