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

cancai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git


The following commit(s) were added to refs/heads/main by this push:
     new 0fb443006d [CALCITE-6801] Linter should disallow tags such as 'Chore' 
in commit messages
0fb443006d is described below

commit 0fb443006d8891f7f228a512a3ab1ab380286042
Author: Cancai Cai <[email protected]>
AuthorDate: Sat Jan 25 23:51:39 2025 +0800

    [CALCITE-6801] Linter should disallow tags such as 'Chore' in commit 
messages
---
 core/src/test/java/org/apache/calcite/test/LintTest.java | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/core/src/test/java/org/apache/calcite/test/LintTest.java 
b/core/src/test/java/org/apache/calcite/test/LintTest.java
index 56fa317b63..628c930f8e 100644
--- a/core/src/test/java/org/apache/calcite/test/LintTest.java
+++ b/core/src/test/java/org/apache/calcite/test/LintTest.java
@@ -412,6 +412,9 @@ private static void checkMessage(String subject, String 
body,
     if (subject2.matches("[a-z].*")) {
       consumer.accept("Message must start with upper-case letter");
     }
+    if (subject2.matches("^Chore.*\\b")) {
+      consumer.accept("Message cannot start with the Chore keyword");
+    }
 
     // Check for keywords that should be capitalized
     for (Map.Entry<String, String> entry : TERMINOLOGY_MAP.entrySet()) {

Reply via email to