Merge requests
Open a merge request, get it reviewed and merge it, and what merging does to the tasks it is linked to.
A merge request asks for a branch to be merged into another, usually the default branch. It shows what would change, collects reviews, and keeps the tasks it belongs to up to date.
Open one
Open the workspace's Merge tab and create a merge request from your branch. You can add reviewers and assignees as you create it, or later.
A merge request is draft, open, merged or closed. Use draft while the work is still moving and you want early eyes on it without inviting a merge.
Review
The review page shows the commits, the files changed and whether the branch conflicts with its target, so reviewers know what they are approving before anyone merges.
A reviewer either approves or requests changes. Reviewers can @-mention people in a review to pull them in; mentioned people are notified.
Merge
Merge is available once the rules allow it:
- At least one approval, while Require reviews before merge is on (the default).
- Every required check passing, if the repository names any. There is no admin bypass for these.
See Branch protection and merge rules.
What happens to linked tasks
Merge requests are linked to tasks automatically when the branch was started from a task, and you can link others by hand.
| When | Linked tasks |
|---|---|
| The merge request is opened | Move to In Review. |
| It is merged into the default branch | Move to Done. |
| It is merged into another branch | Move to Pending Release, until that branch is released. |
| It is closed without merging | Move back to In Progress. |
| A closed one is reopened | Move to In Review again. |
Close without merging
Close a merge request when its branch is abandoned. It leaves the open list but keeps its history and discussion.