Skip to content

Commit

Permalink
genrelnotes: Jump to version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xclaesse authored and jpakkane committed Nov 9, 2022
1 parent 273605f commit 9463595
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/genrelnotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ def add_to_sitemap(sitemap, output_sitemap):
m = re.match(r'[\s]*Release-notes-for-([0-9]+)\.([0-9]+)\.([0-9]+)\.md', line)
if m:
from_version = f'{m[1]}.{m[2]}.{m[3]}'
to_version = f'{m[1]}.{int(m[2]) + 1}.{m[3]}'
if from_version == '0.64.0':
to_version = '1.0.0'
else:
to_version = f'{m[1]}.{int(m[2]) + 1}.{m[3]}'
new_line = line.replace(from_version, to_version)
relnotes = new_line.strip()
s_f.write(new_line)
Expand Down

0 comments on commit 9463595

Please sign in to comment.