Skip to content

Auto Selection of Merge Templates Based on Target Branch

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

Currently, it's possible to set a default template on the source branch: https://docs.gitlab.com/ee/user/project/description_templates.html#create-a-merge-request-template

This feature proposal aims to introduce an automated system for selecting merge templates based on the target branch specified in a merge request. The goal is to streamline the merge request process by reducing manual intervention and ensuring the appropriate template is applied based on the target branch. Currently, users need to manually select the appropriate merge template when creating a merge request.

The proposal is to implement a feature that allows users to define a list of merge templates, each associated with specific target branches. When a user creates a merge request, the appropriate template will be selected based on the target branch of the merge request.

For example, a customer has a template named release_template that should be used for any merge requests targeting the release branch. When a user initiates a merge request with the target branch set to release, the release_template will be automatically selected.

This came up in a zendesk ticket - internal only

PM to mention: @gweaver

Edited by 🤖 GitLab Bot 🤖