docs: agrego secciones de autor y commits, cambio formato de timestamp
This commit is contained in:
@@ -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}**",
|
||||
""
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user