Help Center/ CodeArts Repo/ Getting Started/ Configuring CodeArts Repo Policies by Administrator
Updated on 2024-11-11 GMT+08:00

Configuring CodeArts Repo Policies by Administrator

As a code 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.

Setting a Protected Branch

  1. Click Create Protected Branch. Select an existing branch, or enter a wildcard that matches at least one existing branch.
  2. 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.