'Set default reviewers for merge request in GitLab
How I can set default reviewers in GitLab Premium?
In Settings → General
I have only Merge request (MR) approvals
, not reviewers.
Solution 1:[1]
There is no such setting in the UI. If you think it would be useful to others, please file a feature request.
As a workaround, you could use the Merge requests API to set reviewers when creating the MR or by updating it after creation.
How you want to achieve the desired result depends on your workflow.
For example, you could have something subscribe to the project webhook which triggers a script that does the API call whenever it sees an open
MR event.
Another option, if you run pipelines on MRs, you can have a job run a script which could set reviewers if none are already set via the API.
Solution 2:[2]
If you have the proper permissions (I believe you have to be a Maintainer of the project), then you should expand that Merge request approvals
section. There is a place to edit the Default approvers there.
Solution 3:[3]
Could you please try below
In Settings-->General-Merge Request Approvals.
Click on Add approval Rule.
Add Rule name as "Default", Approvals required, desired branch and add members under approvers.
These approvers would be your default reviewers for any Merge request.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | Keith |
Solution 3 | Sandeepp |