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

luigidemasi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kit.git

commit db62ae6663a8349da0dea45587a644d42cd5d9ae
Author: Luigi De Masi <[email protected]>
AuthorDate: Tue Nov 17 18:47:14 2026 +0100

    Strengthen former-repository URL regression coverage
    
    Match bare, .git and slash-form links to the former Camel Kit repository
    without rejecting similarly named repositories. Addresses the optional
    P3 in PR #181.
    
    Co-authored-by: OpenAI Codex <[email protected]>
---
 .../java/org/apache/camel/kit/generator/ResourceConsistencyTest.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ResourceConsistencyTest.java
 
b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ResourceConsistencyTest.java
index 6faae630..96c684bf 100644
--- 
a/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ResourceConsistencyTest.java
+++ 
b/kit/camel-kit-core/src/test/java/org/apache/camel/kit/generator/ResourceConsistencyTest.java
@@ -1809,10 +1809,11 @@ class ResourceConsistencyTest {
             docs.filter(path -> 
path.toString().endsWith(".md")).forEach(files::add);
         }
 
+        Pattern formerRepository = 
Pattern.compile("github\\.com/luigidemasi/camel-kit(?:\\.git)?(?![\\w.-])");
         for (Path file : files) {
             // The former repository is only referenced by the JBang alias of 
the published 0.4.1 release and by
             // historical CHANGELOG compare links; every URL into it from the 
documentation is stale (#162).
-            
assertFalse(Files.readString(file).contains("github.com/luigidemasi/camel-kit/"),
+            
assertFalse(formerRepository.matcher(Files.readString(file)).find(),
                     file.getFileName() + " links to the former repository 
(#162)");
         }
         
assertTrue(Files.readString(root.resolve("kit/README.md")).contains("https://camel.apache.org/camel-kit/next/";),

Reply via email to