Help Center/ CodeArts Repo/ Getting Started/ Configuring CodeArts Repo Policies by Administrator
Updated on 2026-07-15 GMT+08:00

Configuring CodeArts Repo Policies by Administrator

As a repository administrator, it may be necessary for you to configure policies for high-quality code merging. This section describes how to set policies for protected branches and protected tags in a code repository.

Go to the homepage of your code repository and click Settings on the top navigation bar.

Setting a Protected Branch

  1. In the navigation pane on the left, choose Policy Settings > Protected Branches.
  2. Click Create Protected Branch. Select an existing branch, or enter a wildcard that matches at least one existing branch.
  3. Set Push and Merge permissions for the Administrator/Project manager, Committer, or Developer.

    If the Push permission is enabled, the Merge permission of the role is enabled by default, and cannot be disabled.

Setting a Protected Tag

  1. Click Create Protected Tag. Select a tag in the drop-down list of Tags or enter a wildcard.
  2. Select roles from the drop-down list of Allowed to Create.