Merged in docs/change-changelog-format (pull request #9)
docs: change changelog format Approved-by: Jonathan Teran
This commit is contained in:
@@ -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
|
## Domingo, 2 De Noviembre De 2025, 13:36:22
|
||||||
|
|
||||||
- Usuario: **Jonathan Teran Carballo**
|
- Usuario: **Jonathan Teran Carballo**
|
||||||
|
|||||||
@@ -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}**",
|
||||||
""
|
""
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user