Skip to content

Commit

Permalink
fix: fix version number in changelogs (#1782)
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas authored Oct 26, 2024
1 parent 221993b commit 151ff99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 151ff99

Please sign in to comment.