Create MR for every new branch

If you're following a merge request flow, where you're expected to have a merge request for every topic branch, then it's silly for GitLab to allow you to create a branch and not enforce a corresponding merge request. Some folks have automated this using the API, but why not have this be a first-class option in GitLab?

Proposal

Add project configuration teams that want this behavior can enable it in for the project

Workflow

  • Every time someone pushes a commit with to the project, check if the branch already has an open merge request and, if not, create one
    • Merge request title should be WIP: <short commit message>
    • Merge request description should be <long commit message> if set else blank
    • Assign the merge request to the pusher
  • Send merge request URL with Git output

Links / references

  • From https://rpadovani.com/open-mr-gitlab-ci
  • https://twitter.com/bitsweat/status/883402701270163461
Edited Oct 25, 2018 by James Ramsay (ex-GitLab)
Assignee Loading
Time tracking Loading