Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Add method to Gitlab that allows forcing MR approval #120

Closed
kubukoz opened this issue Jan 18, 2021 · 1 comment · Fixed by #123
Closed

Add method to Gitlab that allows forcing MR approval #120

kubukoz opened this issue Jan 18, 2021 · 1 comment · Fixed by #123
Assignees

Comments

@kubukoz
Copy link
Member

kubukoz commented Jan 18, 2021

The current way to do this seems to be https://docs.gitlab.com/ee/api/merge_request_approvals.html#delete-merge-request-level-rule - it requires having the ID of the approval rule, and we can get these for a MR by using https://docs.gitlab.com/ee/api/merge_request_approvals.html#get-configuration-1.

If there are any project-wide rules, I think we can't really do anything to remove them from an individual MR. <- needs verification

As a temporary solution, we can use
Use https://docs.gitlab.com/ee/api/merge_request_approvals.html#change-configuration and just set the required approvals to 0.

@majk-p
Copy link
Member

majk-p commented Jan 19, 2021

I'm on it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants