Gitlab Emergency Approvals

Hi,

We have a GitLab server that we are currently trying to setup Merge Request Approvals on. It works fine, but we have one issue we cant resolve.

We have a need for emergency merge requests (Out of hours) that we wont be able to get an approval on. Is there anyway around this? One thought is to have an Emergency account which can be used as an approver, but I wondered if there was an approved method to do this from GitLab?

Thanks for any replys.

I don’t have a suggestion on whether there is a standard way of doing this, but here are a couple of pointers:

You could override the default approval settings:
https://docs.gitlab.com/ee/user/project/merge_requests/merge_request_approvals.html#overriding-the-merge-request-approvals-default-settings

You could use the GitLab API to e.g. auto-approve emergency merge requests based on your criteria:
https://docs.gitlab.com/ee/api/merge_request_approvals.html#approve-merge-request