This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new aa18188d305 pre-commit: auto add license headers for all YAML files
(#12069)
aa18188d305 is described below
commit aa18188d30587e38ad9d982c0cc544739966296f
Author: John Bampton <[email protected]>
AuthorDate: Fri Nov 14 23:23:03 2025 +1000
pre-commit: auto add license headers for all YAML files (#12069)
Fix and standardize one license header
---
.pre-commit-config.yaml | 10 ++++++++++
tools/docker/docker-compose.yml | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ab94284264c..d324c958bb1 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -71,6 +71,16 @@ repos:
- --license-filepath
- .github/workflows/license-templates/LICENSE.txt
- --fuzzy-match-generates-todo
+ - id: insert-license
+ name: add license for all YAML files
+ description: automatically adds a licence header to all YAML files
that don't have a license header
+ files: \.ya?ml$
+ args:
+ - --comment-style
+ - '|#|'
+ - --license-filepath
+ - .github/workflows/license-templates/LICENSE.txt
+ - --fuzzy-match-generates-todo
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
diff --git a/tools/docker/docker-compose.yml b/tools/docker/docker-compose.yml
index 86934f6407f..1169b46c263 100644
--- a/tools/docker/docker-compose.yml
+++ b/tools/docker/docker-compose.yml
@@ -5,9 +5,9 @@
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
-
+#
# http://www.apache.org/licenses/LICENSE-2.0
-
+#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY