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

Configuring Commit Rules for a Repository Group

You can configure code commit 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 Configuring Protected Tag Rules for a Repository Group.

Constraints

Table 1 Constraints on configuring commit rules

Item

Description

Permission constraint

Repository group members who have the setting permission for repository groups can configure permissions on this page. For details, see Configuring a Repository Group's Permissions. Repository group members can only view this page.

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, set commit rules by referring to Table 1. The configuration takes effect for all branches in the repository.
  3. If you want to configure commit rules for a specified branch, click Create Commit Rules, and refer to Table 2 for filling out the parameters. For common regular expression examples, see Table 3.