Updated on 2024-07-05 GMT+08:00

MR Templates

To configure MR templates, you can choose Settings > Template Manage > Merge Request Templates on the repository details page. When creating an MR, you can select an MR template. The template content is automatically applied to the MR.

The settings take effect only for the repository configured.

All repository members can view this page. For details about whether a repository member has repository setting permissions, refer to the Permissions page.

Creating an MR Template

Table 1 Parameters

Parameter

Description

Template name

(Mandatory) Name of the template to be created.

Configure the template as the default template

(Optional) If this parameter is selected, this template is used by default during MR creation.

Auto extract MR title

(Optional) The options are as follows:

  • None
  • Extract commit message
  • Extract E2E title

Title

(Optional) When Auto extract MR title is set to None, this parameter can be customized.

Description

This parameter is optional. Enter the description of the template. The value contains a maximum of 10,000 characters.