docs: agrego secciones de autor y commits, cambio formato de timestamp

This commit is contained in:
jt
2025-11-02 13:40:19 -03:00
parent 3b64820505
commit 35f9b1846f
+11 -2
View File
@@ -482,14 +482,23 @@ def update_changelog(branch: str, target: str):
def generate_changelog_entry(branch: str, target: str): def generate_changelog_entry(branch: str, target: str):
name = Git("config", "user.name").firstline() name = Git("config", "user.name").firstline()
email = Git("config", "user.email").firstline() email = Git("config", "user.email").firstline()
timestamp = datetime.datetime.now().strftime("%A, %e de %B de %Y, %T").title()
now = datetime.datetime.now()
weekday = now.strftime("%A").capitalize()
month = now.strftime("%B").capitalize()
timestamp = now.strftime(f"{weekday}, %e de {month} de %Y, %H:%M")
entry_lines = [ entry_lines = [
f"## {timestamp}", f"## {timestamp}",
"", "",
"### Autor",
"",
f"- Usuario: **{name}**", f"- Usuario: **{name}**",
f"- Email: **{email}**", f"- Email: **{email}**",
f"- Rama: **{branch}**", "",
"### Commits",
"",
f"Rama: **{branch}**",
"" ""
] ]