Updated on 2025-07-25 GMT+08:00

Configuring Merge Request Rules for a Repository Group

You can configure merge request rules for all repositories in a repository group. Before the configuration, view Constraints and configure protected tag rules for the repository groups by referring to Steps.

Constraints

Table 1 Constraints on setting merge request rules

Item

Description

Permission constraint

Project manager or project administrator can set project-level webhooks. For details, see Configuring Project-Level Permissions.

Function constraints

  • If you select Inherit from project, the settings of the project will be used and cannot be changed.
  • If Force inherit is selected, all child repository groups and repositories in the repository group will use the following settings and cannot be changed.

Steps

  1. Go to the repository group Test_Group to be configured.

  2. If you do not inherit project settings, refer to step 1 to understand the differences between score and approval mechanisms. Then select a merge mechanism, and configure merge request rules by referring to 2 and 3.

    If your merge mechanism is Approval and you want to set the merge policy for specified branched or branches with match rules in the repository, refer to this section.