|
|
@ -45,15 +45,14 @@ class VersionEntry:
|
|
|
|
self.link: str = ''
|
|
|
|
self.link: str = ''
|
|
|
|
|
|
|
|
|
|
|
|
def __str__(self) -> str:
|
|
|
|
def __str__(self) -> str:
|
|
|
|
if self.name.lower() == 'unreleased':
|
|
|
|
segments = ['##', self.name]
|
|
|
|
return f'## {self.name}'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
date_str = self.date.isoformat() if self.date else 'UNKNOWN'
|
|
|
|
if self.date:
|
|
|
|
line = f'## {self.name} - {date_str}'
|
|
|
|
segments += ['-', self.date.isoformat()]
|
|
|
|
for tag in self.tags:
|
|
|
|
|
|
|
|
line += ' [' + tag.upper() + ']'
|
|
|
|
segments += [f'[{t.upper()}]' for t in self.tags]
|
|
|
|
|
|
|
|
|
|
|
|
return line
|
|
|
|
return ' '.join(segments)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Changelog:
|
|
|
|
class Changelog:
|
|
|
|