This is an automated email from the ASF dual-hosted git repository.

djwang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/main by this push:
     new a971dd58b7c Add branch protection for REL_2_STABLE in .asf.yaml
a971dd58b7c is described below

commit a971dd58b7ccfcf8e8302762940e14afc8002a79
Author: Dianjin Wang <[email protected]>
AuthorDate: Thu Jan 15 11:22:24 2026 +0800

    Add branch protection for REL_2_STABLE in .asf.yaml
    
    Add branch protection rules for the REL_2_STABLE release branch to
    ensure all modifications must go through pull requests.
    
    Configuration added:
     * Require at least 2 approving reviews before merging
     * Require conversation threads to be resolved before merging
    
    This protects the release branch from direct pushes and enforces
    code review workflow for all changes.
---
 .asf.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/.asf.yaml b/.asf.yaml
index eb828d3bb41..01188659355 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -122,6 +122,18 @@ github:
       # Require conversation threads to be resolved
       required_conversation_resolution: true
 
+    # Branch protection for REL_2_STABLE release branch
+    REL_2_STABLE:
+      # Pull request review requirements
+      required_pull_request_reviews:
+        # Require new reviews when new commits are pushed
+        dismiss_stale_reviews: false
+        # Require at least 2 approving reviews
+        required_approving_review_count: 2
+
+      # Require conversation threads to be resolved
+      required_conversation_resolution: true
+
   # Branch cleanup settings
   # Don't automatically delete branches after merging
   del_branch_on_merge: true


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to