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

git-hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new c92e7abda chore(ci): check license headers in Lua scripts (#3616)
c92e7abda is described below

commit c92e7abdaf3ceb0ea0dc7dd455d035430e3bfc91
Author: hulk <[email protected]>
AuthorDate: Fri Sep 11 13:20:02 2026 +0800

    chore(ci): check license headers in Lua scripts (#3616)
    
    Add Lua files to the license header checker and add the missing Apache
    header to the LuaJIT bytecode regression script.
    
    Assistant-By GPT-6 Astra
---
 .github/config/licenserc.yml                        |  1 +
 tests/gocase/unit/scripting/luajit_bytecode_dos.lua | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/.github/config/licenserc.yml b/.github/config/licenserc.yml
index 9e1a6e4a1..7081889aa 100644
--- a/.github/config/licenserc.yml
+++ b/.github/config/licenserc.yml
@@ -25,6 +25,7 @@ header:
     - '**/*.cc'
     - '**/*.cmake'
     - '**/*.go'
+    - '**/*.lua'
     - '**/*.h'
     - '**/*.py'
     - '**/*.sh'
diff --git a/tests/gocase/unit/scripting/luajit_bytecode_dos.lua 
b/tests/gocase/unit/scripting/luajit_bytecode_dos.lua
index c799bf0ef..8a7611393 100644
--- a/tests/gocase/unit/scripting/luajit_bytecode_dos.lua
+++ b/tests/gocase/unit/scripting/luajit_bytecode_dos.lua
@@ -1,3 +1,20 @@
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- 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
+-- KIND, either express or implied.  See the License for the
+-- specific language governing permissions and limitations
+-- under the License.
+
 local results = {}
 local ls = rawget(_G, "loadstring")
 if not ls then return {"ERROR:no_loadstring"} end

Reply via email to