Ensure require all discussions will be resolved before marge

Using approval rules, an admin can define how many approvals a merge request must receive before it can merge and which users should do the approval.

Risk Level: medium
Platform: Gitlab
Spectral Rule ID: GL-HRD008

REMEDIATION

To add a merge request approval rule:

SaaS:

  1. Go to your project and select Settings > General.
  2. Expand Merge requests.
  3. Find the merge checks section, and make sure the "All threads must be resolved" checkbox is enabled.
  4. Select Add approval rule.

Read more: