From fd9c72a6872bf13375e88e6800ae1cb01a7f633d Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Sun, 10 Nov 2024 22:55:29 -0500 Subject: [PATCH] Relax regex in draft-release.py (#6189) ## Which problem is this PR solving? - The script expects changelog header with digits only, but last release was with `v` prefix (as it was shown in the header template). ## Description of the changes - Relax regex in the script to allow `v` prefix as well ## How was this change tested? - `make draft-release` was run to create 2.0.0 release Signed-off-by: Yuri Shkuro --- scripts/draft-release.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/draft-release.py b/scripts/draft-release.py index 3918f0b8cdd..94461722b26 100755 --- a/scripts/draft-release.py +++ b/scripts/draft-release.py @@ -8,11 +8,11 @@ import subprocess generic_release_header_pattern = re.compile( - r".*(1\.\d+\.\d+)", flags=0 + r".*v?(1\.\d+\.\d+)", flags=0 ) jaeger_release_header_pattern = re.compile( - r".*(1\.\d+\.\d+) */ *(2\.\d+\.\d+) \(\d{4}-\d{2}-\d{2}\)", flags=0 + r".*v?(1\.\d+\.\d+) */ *v?(2\.\d+\.\d+) \(\d{4}-\d{2}-\d{2}\)", flags=0 ) underline_pattern = re.compile(r"^[-]+$", flags=0)