Fix changelog update

This commit is contained in:
Victor Zverovich 2024-01-01 11:06:44 -08:00
parent b0569451a7
commit 051b31531c

View File

@ -238,7 +238,8 @@ def release(args):
for i, line in enumerate(fileinput.input(changelog_path, inplace=True)):
if i == 0:
version = re.match(r'# (.*) - TBD', line).group(1)
line = version + ' - ' + datetime.date.today().isoformat() + '\n'
line = '# {} - {}\n'.format(
version, datetime.date.today().isoformat())
elif not is_first_section:
pass
elif line.startswith('#'):