fix: fix version number in changelogs (#1782)

This commit is contained in:
Antheas Kapenekakis 2024-10-26 16:36:18 +02:00 committed by GitHub
parent 221993bfec
commit 151ff99bfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -326,9 +326,9 @@ def generate_changelog(
finish = ""
# Remove .0 from curr
curr = re.sub(r"\.\d{1,2}$", "", curr)
curr_pretty = re.sub(r"\.\d{1,2}$", "", curr)
# Remove target- from curr
curr_pretty = re.sub(rf"^[a-z]+-", "", curr)
curr_pretty = re.sub(rf"^[a-z]+-", "", curr_pretty)
pretty = target.capitalize() + " (F" + curr_pretty
if finish and target != "stable":
pretty += ", #" + finish[:7]