All Products
Search
Document Center

Alibaba Cloud DevOps:Code repository settings

Last Updated:Apr 09, 2025

This topic provides a detailed guide on code repository settings, to assist enterprises in managing and optimizing their resources on Alibaba Cloud DevOps Codeup. The guide covers modifications to basic information and the execution of high-risk operations, along with fine-grained control over critical features such as branches, push rules, and Webhooks.

Basic settings

Modify basic information

As a repository or organization administrator, you can modify the basic information of the repository, including the name, description, cover image, and visibility level, by using the Repository Settings in Global Settings or the Settings of each individual repository. This makes it easier and faster for other developers and organization members to locate the required repositories they need.

  • Adjust repository visibility level: If the Allow Repository Administrator to Change Visibility Level to Visible to Organization option is not selected in Global Settings > Repository Settings, the Visible to Organization option under Visibility Level in Settings of individual repository is grayed out for repository administrators. A notification is sent to indicate that the organization does not support the visibility level settings. To configure these settings, contact an organization administrator. The organization administrator is not affected by this restriction.

High-risk operations

In the Basic settings of each individual repository, you can perform several high-risk operations, such as:

  • Modify Repository Path: Allows you to alter the URL path used to access the repository.

  • Transfer Repository: Facilitates the relocation of the repository to a different group for streamlined management.

  • Archive Repository: Sets a repository that is no longer active to read-only status.

  • Delete Repository: Provides a delayed deletion feature to protect data and recover accidentally deleted repositories.

Storage space management

When your repository approaches the 5 GB storage limit, you can use repository GC to compress storage objects. This feature reduces disk usage and improves read and write efficiency.

Branch settings

Feature description

As a repository administrator, you can specify Default Branch and Protected branches rule on the Branch Settings page of a selected repository.

  • Default Branch: Specifies the default branch for cloning, branch creation, and merge requests. This branch cannot be deleted.

  • Protected Branch Rule: Specifies the rules restricting the deletion of branches and force pushes, to protect important branches from accidental modifications. For more information, see Branch settings.

Push rules settings

To normalize commit formats, Codeup provides the push rule settings feature to allow you to create custom rules for reviewing unpushed commits. The repository administrator can perform various operations on the Push Rules Settings page, which is accessible through the Settings of the selected repository. These operations include creating a new push rule, performing a rule-based check on a commit, committing an email address, force pushing, and checking a code owner. You can also inherit organization-level rules to ensure consistency.

Push review mode

Push review mode is an efficient code collaboration method that allows you to initiate code reviews by using git push, without the need to create a new branch or switch to a browser. This mode simplifies the contribution process and enhances the code quality.

Webhooks settings

You can trigger functions such as continuous integration builds, image backups, and production deployments by using Webhooks to call a specified URL in response to events such as code pushes or code reviews.

Effective use of the repository settings features helps organizations to improve the efficiency and security of their code management practices, facilitating collaboration and fostering growth among their teams.