Skip to content

Commit

Permalink
Relax regex in draft-release.py (#6189)
Browse files Browse the repository at this point in the history
## 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 <[email protected]>
  • Loading branch information
yurishkuro authored Nov 11, 2024
1 parent 63df735 commit fd9c72a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/draft-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fd9c72a

Please sign in to comment.