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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b62697d14d [infra] Require one approving review on master and clear 
collaborators (#4711)
5b62697d14d is described below

commit 5b62697d14d399653d4a52b12178d03fb69696f3
Author: Mingyu Chen (Rayner) <[email protected]>
AuthorDate: Wed Nov 25 10:04:53 2026 +0800

    [infra] Require one approving review on master and clear collaborators 
(#4711)
    
    ## Summary
    
    Updates `.asf.yaml` for `apache/doris-website`:
    
    - **Require one approving review for `master`**:
    `required_approving_review_count: 1`. GitHub only counts approvals from
    users with write access, so a pull request needs at least one committer
    approval before it can be merged.
    - **Invalidate approvals on new commits**: `dismiss_stale_reviews: true`
    and `require_last_push_approval: true`, so an approved clean revision
    cannot be replaced by a later unreviewed push.
    - **Remove all collaborators**: replaces the `collaborators` list with
    an explicit empty list. Per the asfyaml documentation, an explicit `[]`
    is required to clear a previously non-empty list; removing the key would
    leave the existing collaborators in place.
    - **Limit PR spam**: `creation_cap` caps concurrent open PRs from users
    without write access (20, drafts included).
    - **Branch hygiene**: `del_branch_on_merge: true`.
    - **Declare repository features**: keep issues enabled and explicitly
    disable wiki, projects, and discussions.
    - **Dependabot**: enable `dependabot_alerts` and `dependabot_updates`.
    - Keeps the existing required status checks (`Build Check`,
    `check-md-links`, `check-file-sizes`) and the rest of the file
    unchanged.
    
    ## Notes
    
    - `.asf.yaml` is applied by ASF infrastructure after this is merged to
    the default branch; the settings do not take effect from the PR itself.
    - A pull request author cannot approve their own PR, so when the author
    is a committer, a second committer is still needed to satisfy the
    required review.
    - `creation_cap` is a newer asfyaml setting; please validate it against
    the ASF asfyaml deployment/sandbox before merge.
    - The `collaborators` entry only controls the GitHub triage role for
    external contributors; removing it does not change committer access.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    ---------
    
    Co-authored-by: morningman <[email protected]>
---
 .asf.yaml | 27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index ba4b5a7f0f3..c429645af52 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -43,6 +43,12 @@ github:
     rebase:  false
   pull_requests:
     allow_update_branch: true   
+    del_branch_on_merge: true
+    creation_cap:
+      # Limit concurrent open PRs from users without write access (fork PRs).
+      enabled: true
+      max_open_pull_requests: 20
+      include_drafts: true
   protected_branches:
     master:
       required_status_checks:
@@ -52,12 +58,27 @@ github:
           - Build Check
           - check-md-links
           - check-file-sizes
+      required_pull_request_reviews:
+        # Require at least one approving review before a PR can be merged into
+        # master. Only reviewers with write access (committers) count.
+        required_approving_review_count: 1
+        # A new commit dismisses earlier approvals, and the latest push must be
+        # approved again, so an approved clean revision cannot be replaced by a
+        # later unreviewed one.
+        dismiss_stale_reviews: true
+        require_last_push_approval: true
   features:
     issues: true
+    wiki: false
+    projects: false
+    discussions: false
 
-  collaborators:
-    - wangtianyi2004
-    - freemandealer
+  dependabot_alerts: true
+  dependabot_updates: true
+
+  # Explicit empty list: removing the key entirely would not clear 
collaborators
+  # that a previously applied .asf.yaml had configured.
+  collaborators: []
 
 notifications:
     commits:              [email protected]


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

Reply via email to