This is an automated email from the ASF dual-hosted git repository.
janhoy pushed a commit to branch branch_9_10
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9_10 by this push:
new cfd3abfd209 SOLR-17619 changes2html.py support release without
release-date
cfd3abfd209 is described below
commit cfd3abfd20932d807ab6be004b60bcc458e3c4de
Author: Jan Høydahl <[email protected]>
AuthorDate: Sun Nov 2 15:44:21 2025 +0100
SOLR-17619 changes2html.py support release without release-date
---
gradle/documentation/changes-to-html/changes2html.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gradle/documentation/changes-to-html/changes2html.py
b/gradle/documentation/changes-to-html/changes2html.py
index ce302be11bf..1cd7bb93fbd 100755
--- a/gradle/documentation/changes-to-html/changes2html.py
+++ b/gradle/documentation/changes-to-html/changes2html.py
@@ -31,7 +31,7 @@ from pathlib import Path
class ChangelogParser:
"""Parse CHANGELOG.md generated by logchange"""
- RELEASE_PATTERN = re.compile(r'^\[(\d+(?:\.\d+)*)\]\s*-\s*(.+)$')
+ RELEASE_PATTERN = re.compile(r'^\[(\d+(?:\.\d+)*)\](\s+-\s+(.+))?$')
SECTION_PATTERN =
re.compile(r'^###\s+(\w+(?:\s+\w+)*)\s*(?:\(\d+\s+changes?\))?')
ITEM_PATTERN = re.compile(r'^###|^\[|^- ')
@@ -80,7 +80,7 @@ class ChangelogParser:
current_release = {
'version': match.group(1),
- 'date': match.group(2).strip(),
+ 'date': match.group(3).strip() if match.group(3) else None,
'sections': []
}
current_section = None