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

jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sedona.git


The following commit(s) were added to refs/heads/master by this push:
     new d6c208da66 [CI] pre-commit: auto add license headers to `.c` and `.h` 
files (#1802)
d6c208da66 is described below

commit d6c208da66dd45e1dcecbf66954176aa7cda08f2
Author: John Bampton <[email protected]>
AuthorDate: Wed Feb 12 10:28:04 2025 +1000

    [CI] pre-commit: auto add license headers to `.c` and `.h` files (#1802)
---
 .pre-commit-config.yaml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b2c2cffa6a..9d638399bc 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -32,6 +32,15 @@ repos:
   - repo: https://github.com/Lucas-C/pre-commit-hooks
     rev: v1.5.5
     hooks:
+      - id: insert-license
+        name: add license for all .c and .h files
+        files: \.(c|h)$
+        args:
+          - --comment-style
+          - "/*|*|*/"
+          - --license-filepath
+          - .github/workflows/license-templates/LICENSE.txt
+          - --fuzzy-match-generates-todo
       - id: insert-license
         name: add license for all Markdown files
         files: \.md$

Reply via email to