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)):
|
for i, line in enumerate(fileinput.input(changelog_path, inplace=True)):
|
||||||
if i == 0:
|
if i == 0:
|
||||||
version = re.match(r'# (.*) - TBD', line).group(1)
|
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:
|
elif not is_first_section:
|
||||||
pass
|
pass
|
||||||
elif line.startswith('#'):
|
elif line.startswith('#'):
|
||||||
|
Loading…
Reference in New Issue
Block a user