Skip to content

Automatically retarget merge requests

Release notes

Today, user needs to manually retarget the MR B onto master once MR A is merged. GitLab can automate that.

Problem to solve

It is common to have a number of merge requests in a chain, when one depends on another. For example:

  • Merge Request A: merge feature-A into master
  • Merge Request B: merge feature-B into feature-A

We can distinguish two workflows:

  • the MR A is merged into master first, and then MR B is retargeted onto master
  • the MR B is merged into feature-A branch, and then MR A is merged into master

Today, user needs to manually retarget the MR B onto master once MR A is merged.

GitLab can automate that.

Intended users

User experience goal

The MRs are automatically retargeted making user to perform less actions manually, as otherwise user would do it anyway.

Feb-09-2021_11-47-13

Proposal

The MRs that are targeting the currently merged MR are automatically retargeted.

Available Tier

  • Free

Links / references

Edited by Kamil Trzciński