Description:
This check verifies that a GitLab project requires all open discussions or comments on a merge request to be marked as resolved before it can be merged into the target branch. This ensures that reviewer feedback, questions, and concerns are formally addressed rather than being silently ignored when code is merged.
Rationale:
Unresolved discussions often represent outstanding concerns, unanswered questions, or requested changes that haven't yet been addressed. Allowing a merge request to be merged while discussions remain open undermines the purpose of code review, since feedback can be raised but never actually acted upon. Requiring conversation resolution ensures that every review comment is either resolved or explicitly acknowledged before the change is integrated.
Impact:
Prevent a merge request from being merged while any discussion thread remains unresolved.
Require the author or reviewer to explicitly resolve each open discussion before merging.
Improve accountability and ensure reviewer feedback is not overlooked.
Slightly increase the time required to complete a merge request when discussions are still active.
Default Value:
Disabled By default, GitLab projects do not require all discussions to be resolved before a merge request can be merged. Default setting: only_allow_merge_if_all_discussions_are_resolved: false
Pre-Requisites:
Maintainer or Owner access to the project
An existing GitLab project
Test Plan:
Sign in to GitLab at https://gitlab.com.
Navigate to the target project.
Select Settings → Merge requests.
Locate the Merge checks section.
Verify that "All threads must be resolved" is checked.
Implementation Steps:
Sign in to GitLab at https://gitlab.com.
Navigate to the target project.
Select Settings → Merge requests.
Locate the Merge checks section.
Check "All threads must be resolved".
Click Save changes.
Backout Plan:
Sign in to GitLab at https://gitlab.com.
Navigate to Settings → Merge requests.
Locate the Merge checks section.
Uncheck "All threads must be resolved".
Click Save changes.
Confirm that project operations function as expected after the rollback.
Reference: