Browse Source

update ChangelogV3.release_date on ChangelogManager.release()

master
Niklas Rosenstein 10 months ago
parent
commit
b93ca7a09f
No known key found for this signature in database GPG Key ID: 6D269B33D25F6C6
1 changed files with 4 additions and 0 deletions
  1. + 4
    - 0
      src/shore/util/changelog.py

+ 4
- 0
src/shore/util/changelog.py

@ -187,8 +187,12 @@ class ChangelogManager:
"""
unreleased = self.unreleased
unreleased.release_date = datetime.date.today()
unreleased.save()
os.rename(unreleased.filename, self.version(version).filename)
self._cache.clear()
return self.version(version)
def all(self) -> Iterable[Changelog]:

Loading…
Cancel
Save