From 143c704760eda86d1976b092842c89c6d81b4f68 Mon Sep 17 00:00:00 2001 From: Jonathan Teran Carballo Date: Sun, 2 Nov 2025 13:36:14 -0300 Subject: [PATCH] docs: agrego setteo de locale, muevo usuario y mail a contenido de seccion de CHANGELOG.md --- git-flow | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/git-flow b/git-flow index 085c9d8..ccb314e 100755 --- a/git-flow +++ b/git-flow @@ -1,10 +1,10 @@ #!/usr/bin/env python3 import os -from subprocess import CalledProcessError import sys import datetime import requests +import locale import lib.git as git from lib.git import Git @@ -15,6 +15,8 @@ REPOSITORY_TOKEN_PATH=".repository-token" def main(): + locale.setlocale(locale.LC_ALL, 'es_AR.UTF-8') + args = sys.argv if len(args) < 2: @@ -480,12 +482,15 @@ 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("%d/%m/%Y %H:%M") + timestamp = datetime.datetime.now().strftime("%A, %e de %B de %Y, %T").title() entry_lines = [ - f"## {name} ({email}) - {timestamp}", - "", - f"**{branch}**", + f"## {timestamp}", + "", + f"- Usuario: **{name}**", + f"- Email: **{email}**", + f"- Rama: **{branch}**", + "" ] commits = Git("log", target + "..", first_parent=True, format="%h", merges=False).lines()