Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,329
    • Merge requests 1,329
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #320902
Closed
Open
Issue created Feb 09, 2021 by Kamil Trzciński@ayufan🔴Maintainer

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

  • Sasha (Software Developer)

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 Feb 09, 2021 by Kamil Trzciński
Assignee
Assign to
Time tracking