From 0c8e7bb37aa6f9246a2ac12c2b2a645ed4c01c2a Mon Sep 17 00:00:00 2001 From: Jonathan Teran Date: Thu, 4 Dec 2025 10:11:10 -0300 Subject: [PATCH] bugfix: crear changelog cuando no existe --- src/git_flow/changelog.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/git_flow/changelog.py b/src/git_flow/changelog.py index 56b0dbb..3db172c 100644 --- a/src/git_flow/changelog.py +++ b/src/git_flow/changelog.py @@ -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) + + with open(self.FILENAME, "w") as f: + f.write(content)