Updated on 2024-11-22 GMT+08:00

Configuring Protected Branch Rules

Setting Repo-Level Protected Tag Rules

Go to the repo homepage, choose Settings > Policy Settings > Protected Tags, click Create Protected Tag, and set parameters by referring to the following table.

Table 1 Parameters for creating a protected tag

Parameter

Description

Tags

Mandatory. Enter a complete tag or a tag with a wildcard as required.

Only one branch can be added at a time. Batch adding is not supported. The value must start with refs/heads/ and end with *. Special characters are not allowed in other positions.

Allowed to Create

Mandatory. Roles allowed to create protected tags. You can select a role with permission to create protected tags from the drop-down list box.