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

weizhouapache pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-extensions.git


The following commit(s) were added to refs/heads/main by this push:
     new 1292712  Fix .asf.yaml and pre-commit error (#4)
1292712 is described below

commit 12927127bf7f631eda0c22808113609659fa172d
Author: Wei Zhou <[email protected]>
AuthorDate: Fri Sep 4 17:44:51 2026 +0200

    Fix .asf.yaml and pre-commit error (#4)
    
    * Roll back .asf.yaml
    
    * fix .pre-commit-config.yaml
---
 .asf.yaml                            |  4 ----
 .asf.yaml => .pre-commit-config.yaml | 45 ++++++++++--------------------------
 .asf.yaml => requirements.txt        | 33 --------------------------
 3 files changed, 12 insertions(+), 70 deletions(-)

diff --git a/.asf.yaml b/.asf.yaml
index 7e1ba1b..6c68255 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -41,9 +41,5 @@ github:
       bypass_teams:
         - root
 
-      required_status_checks:
-        - name: "Run pre-commit"
-          app_slug: "github-actions"
-
       restrict_deletion: true
       restrict_force_push: false
diff --git a/.asf.yaml b/.pre-commit-config.yaml
similarity index 53%
copy from .asf.yaml
copy to .pre-commit-config.yaml
index 7e1ba1b..a1198ac 100644
--- a/.asf.yaml
+++ b/.pre-commit-config.yaml
@@ -14,36 +14,15 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-
-# https://cwiki.apache.org/confluence/display/INFRA/git+-+.asf.yaml+features
-github:
-  description: "Extensions for Apache CloudStack"
-  homepage: https://cloudstack.apache.org/
-  labels:
-    - cloudstack
-    - extension
-
-  features:
-    issues: true
-
-  enabled_merge_buttons:
-    merge: false
-    squash: true
-    rebase: false
-    
-  rulesets:
-    - name: "Default Branch Protection"
-      type: branch
-      branches:
-        includes:
-          - "~DEFAULT_BRANCH"
-        excludes: []
-      bypass_teams:
-        - root
-
-      required_status_checks:
-        - name: "Run pre-commit"
-          app_slug: "github-actions"
-
-      restrict_deletion: true
-      restrict_force_push: false
+---
+default_stages: [pre-commit, pre-push]
+default_language_version:
+  # force all unspecified Python hooks to run python3
+  python: python3
+minimum_pre_commit_version: "3.2.0"
+repos:
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v6.0.0
+    hooks:
+      - id: check-merge-conflict
+      - id: end-of-file-fixer
diff --git a/.asf.yaml b/requirements.txt
similarity index 53%
copy from .asf.yaml
copy to requirements.txt
index 7e1ba1b..13a8339 100644
--- a/.asf.yaml
+++ b/requirements.txt
@@ -14,36 +14,3 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-
-# https://cwiki.apache.org/confluence/display/INFRA/git+-+.asf.yaml+features
-github:
-  description: "Extensions for Apache CloudStack"
-  homepage: https://cloudstack.apache.org/
-  labels:
-    - cloudstack
-    - extension
-
-  features:
-    issues: true
-
-  enabled_merge_buttons:
-    merge: false
-    squash: true
-    rebase: false
-    
-  rulesets:
-    - name: "Default Branch Protection"
-      type: branch
-      branches:
-        includes:
-          - "~DEFAULT_BRANCH"
-        excludes: []
-      bypass_teams:
-        - root
-
-      required_status_checks:
-        - name: "Run pre-commit"
-          app_slug: "github-actions"
-
-      restrict_deletion: true
-      restrict_force_push: false

Reply via email to