mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
fix template for changelog
This commit is contained in:
parent
7d1bfb4c35
commit
c03eb3b736
1 changed files with 6 additions and 5 deletions
11
changelog.py
11
changelog.py
|
@ -16,17 +16,17 @@ VALID_SECTIONS = ['Added', 'Changed', 'Deprecated', 'Removed', 'Fixed', 'Securit
|
||||||
|
|
||||||
|
|
||||||
# allocate some entries to cut-down on merge conflicts
|
# allocate some entries to cut-down on merge conflicts
|
||||||
TEMPLATE = """## Added
|
TEMPLATE = """### Added
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|
||||||
## Changed
|
### Changed
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|
||||||
## Fixed
|
### Fixed
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
@ -65,7 +65,8 @@ def bump(changelog, version):
|
||||||
unreleased_end_found = True
|
unreleased_end_found = True
|
||||||
continue
|
continue
|
||||||
if CHANGELOG_ERROR_RE.search(line):
|
if CHANGELOG_ERROR_RE.search(line):
|
||||||
raise Exception(err.format(filename, 'unexpected section header found'))
|
raise Exception(
|
||||||
|
'Failed to parse {}: {}'.format(filename, 'unexpected section header found'))
|
||||||
unreleased.append(line)
|
unreleased.append(line)
|
||||||
|
|
||||||
today = datetime.datetime.today()
|
today = datetime.datetime.today()
|
||||||
|
@ -118,7 +119,7 @@ def normalize(lines):
|
||||||
for section in VALID_SECTIONS:
|
for section in VALID_SECTIONS:
|
||||||
if section not in sections:
|
if section not in sections:
|
||||||
continue
|
continue
|
||||||
output.append('## {}'.format(section))
|
output.append('### {}'.format(section))
|
||||||
for entry in sections[section]:
|
for entry in sections[section]:
|
||||||
output.append(' * {}'.format(entry))
|
output.append(' * {}'.format(entry))
|
||||||
return output
|
return output
|
||||||
|
|
Loading…
Add table
Reference in a new issue