返回术语表
Git与版本控制

Merge Request

GitLab's term for a pull request — a method of submitting code changes for review before merging into another branch. Functionally identical to GitHub's pull request.

定义

Merge Request (MR) is GitLab's implementation of the collaborative code review workflow. Like pull requests, MRs allow developers to propose changes, discuss code, run CI pipelines, and get approval before merging. The term "merge request" emphasizes the action of merging code, while "pull request" historically refers to asking maintainers to pull your changes.

为什么重要

Understanding MR terminology is essential when working with GitLab. The functionality is nearly identical to pull requests, but the workflow may differ slightly. Both facilitate code review, CI/CD integration, and collaborative development.

示例

A developer working in GitLab creates a merge request from their feature branch to main. The MR triggers automated tests, receives reviewer comments, and after approval, is merged using the "Merge" button.

相关术语

merge requestwhat is merge requestMRmerge request vs pull requestGitLab merge request

使用diffray自动化代码审查

多智能体AI代码审查系统。自动发现bug、安全漏洞和架构问题。