Merge requests (MR)
A merge request collects the review and the checks of changes before they are merged into the main branch.
Main features:
- Creating an MR after committing to a feature branch.
- Automatic comparison of changes with the target branch.
- Built-in discussions and code review.
- Support for auto-merge after successful checks (CI/CD, review).
- Visual conflict display and tools for resolution.
Diff view
Shows the changes between code versions.
Supported modes:
- Standard diff — commit-by-commit comparison.
- Side-by-side diff — line-by-line comparison.
- Inline diff — highlights changes within lines.
Comments and discussions
Participants discuss the changes right in the merge request.
Features:
- Commenting on specific lines of code.
- Group discussions with user mentions.
- “Mark as resolved” functionality for closing threads.
- Automatic creation based on comments.
Event notifications
Deckhouse Code notifies participants about project events.
Supported notifications:
- Email alerts about new commits, MRs, and comments.
- Integration with external messengers: Slack, Mattermost, Telegram (configurable alerts).
Merge request approvals
Merging can be blocked until the merge request has the required approvals.
Features:
- Configurable minimum number of approvals.
- Assigning required reviewers.
- Support for auto-approval based on conditions.
- Merge blocking if required approvals are missing.
- Integration with the Codeowners mechanism for mandatory review by code owners.
- Automatic reset of approvals on MR changes.
- Logging of all approval-related actions.
Codeowners
The CODEOWNERS file assigns owners to parts of the codebase.
Functionality:
- Defining owners for specific files and directories.
- Using a
CODEOWNERSfile to declare ownership. - Automatically assigning owners as MR reviewers.
- Integration with the approvals system: owners become mandatory reviewers.
- Support for wildcard path patterns (
*,**) and owner groups. - Ability to restrict changes in protected branches to owners only.