API flag to override approvers and approvals required per merge request

Zendesk ticket (internal link): https://gitlab.zendesk.com/agent/tickets/89093

A customer would like an API flag to override the approvers and approvals required per merge request.

Screen_Shot_2018-01-03_at_3.19.01_PM

This seems reasonable. There is currently an option to update the number of approvals with approvals_before_merge but I don't see one to override the approvers/approvals per MR.

Proposal

Add allow_override_approvals_before_merge or similar (type: boolean, required: no) to projects API replicating the behavior of the 'Can override approvals and approvers required per merge request' checkbox.

  • POST /projects
  • PUT /projects/:id
  • GET /projects/:id

Links

https://docs.gitlab.com/ee/api/projects.html#edit-project

/cc @jramsay

Edited Jan 03, 2018 by James Ramsay (ex-GitLab)
Assignee Loading
Time tracking Loading