Merged in docs/change-changelog-format (pull request #9)

docs: change changelog format

Approved-by: Jonathan Teran
This commit is contained in:
JonathanGitFlow
2025-11-02 16:40:47 +00:00
committed by jt
2 changed files with 27 additions and 2 deletions
+16
View File
@@ -1,3 +1,19 @@
## Domingo, 2 de Noviembre de 2025, 13:40
### Autor
- Usuario: **Jonathan Teran Carballo**
- Email: **jonathan.nerat@gmail.com**
### Commits
Rama: **docs/change-changelog-format**
- **docs**: agrego secciones de autor y commits, cambio formato de timestamp (35f9b18)
- git-flow (M)
---
## Domingo, 2 De Noviembre De 2025, 13:36:22
- Usuario: **Jonathan Teran Carballo**
+11 -2
View File
@@ -482,14 +482,23 @@ def update_changelog(branch: str, target: str):
def generate_changelog_entry(branch: str, target: str):
name = Git("config", "user.name").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 = [
f"## {timestamp}",
"",
"### Autor",
"",
f"- Usuario: **{name}**",
f"- Email: **{email}**",
f"- Rama: **{branch}**",
"",
"### Commits",
"",
f"Rama: **{branch}**",
""
]