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

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit fa0e073baf5370e8cb0e56554f09e66ac5ade2b8
Author: Tomasz 'CeDeROM' CEDRO <to...@cedro.info>
AuthorDate: Tue May 6 15:05:31 2025 +0200

    github: Setup protection for master branch.
    
    * We do not have "Settings" tab in the Apache's owned repository,
      thus we need to update .asf.yaml file with repository settings.
    * No direct push to master branch is possible.
    * Require status checks to pass before merge.
    * Setup reviews parameters.
    * Require signatures.
    * Require conversation resolution.
    * Require linear history.
    
    Signed-off-by: Tomasz 'CeDeROM' CEDRO <to...@cedro.info>
---
 .asf.yaml | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 31267a11d..7039286b0 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -1,10 +1,9 @@
+# Reference: https://github.com/apache/infrastructure-asfyaml.
 github:
   description: "Apache NuttX Apps is a collection of tools, shells, network 
utilities, libraries, interpreters and can be used with the NuttX RTOS"
   homepage: https://nuttx.apache.org/
   features:
-    # Enable issues management
     issues: true
-    # Enable project for project management boards
     projects: true
   labels:
     - nuttx
@@ -14,9 +13,21 @@ github:
     - mcu
     - microcontroller
   enabled_merge_buttons:
-    # disable squash button:
-    squash:  false
-    # disable merge button:
-    merge:   false
-    # enable rebase button:
-    rebase:  true
+    squash: false
+    merge: false
+    rebase: true
+  protected_branches:
+    master:
+      required_status_checks:
+        strict: true
+        contexts:
+          - Check
+          - Lint
+          - Build
+      required_pull_request_reviews:
+        dismiss_stale_reviews: true
+        require_last_push_approval: true
+        required_approving_review_count: 2
+      required_linear_history: true
+      required_signatures: true
+      required_conversation_resolution: true

Reply via email to