From 1c3ac99e44ecec5c4f51692532cd7a6a6191e711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Mon, 29 Apr 2024 12:51:02 +0200 Subject: [PATCH] Fix DB tag regexp in Hibernate GitHub Bot configuration Java apparently throws exception when the replacement string references non-matching groups. This new regexp no longer relies on optional groups, and thus should work fine. --- .github/hibernate-github-bot.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/hibernate-github-bot.yml b/.github/hibernate-github-bot.yml index 71915f9ac7..c66e581a7d 100644 --- a/.github/hibernate-github-bot.yml +++ b/.github/hibernate-github-bot.yml @@ -53,7 +53,7 @@ develocity: pattern: "s390x" replacement: "$1" - column: "DB" - pattern: "(h2|postgres(?:ql)?|pgsql|mysql|mariadb|mssql|derby|tidb|cockroach(?:db)?|oracle|db2|hsqldb|edb|sybase)(?:(.*)_ci|(.*))" - replacement: "$1$2$3" + pattern: "((?:h2|postgres(?:ql)?|pgsql|mysql|mariadb|mssql|derby|tidb|cockroach(?:db)?|oracle|db2|hsqldb|edb|sybase)(?:.*(?=_ci)|.*))(?:_ci)?" + replacement: "$1" - pattern: "main|HEAD|\\d+.\\d+|PR-\\d+" replacement: "" # Just remove these tags \ No newline at end of file