bugfix: crear changelog cuando no existe

This commit is contained in:
Jonathan Teran
2025-12-04 10:11:10 -03:00
parent 6643271747
commit 0c8e7bb37a
+1 -2
View File
@@ -16,8 +16,6 @@ class Changelog:
return f"""## {title} - {now.strftime("%F")}
### Commits
"""
def generate_content(self, base: str, branch: str):
@@ -56,5 +54,6 @@ class Changelog:
if isfile(self.FILENAME):
with open(self.FILENAME, "r") as f:
content += f.read()
with open(self.FILENAME, "w") as f:
f.write(content)