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.
Setting a Protected Branch
- In the navigation tree on the left, choose Policy Settings > Protected Branches. Click Create Protected Branch. Select an existing branch, or enter a wildcard that matches at least one existing branch.
- 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
- Click Create Protected Tag. Select a tag in the drop-down list of Tags or enter a wildcard.
- Select roles from the drop-down list of Allowed to Create.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.