mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Fix changelog update
This commit is contained in:
parent
b0569451a7
commit
051b31531c
@ -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('#'):
|
||||
|
Loading…
Reference in New Issue
Block a user