docs: agrego setteo de locale, muevo usuario y mail a contenido de seccion de CHANGELOG.md
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from subprocess import CalledProcessError
|
|
||||||
import sys
|
import sys
|
||||||
import datetime
|
import datetime
|
||||||
import requests
|
import requests
|
||||||
|
import locale
|
||||||
|
|
||||||
import lib.git as git
|
import lib.git as git
|
||||||
from lib.git import Git
|
from lib.git import Git
|
||||||
@@ -15,6 +15,8 @@ REPOSITORY_TOKEN_PATH=".repository-token"
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
locale.setlocale(locale.LC_ALL, 'es_AR.UTF-8')
|
||||||
|
|
||||||
args = sys.argv
|
args = sys.argv
|
||||||
|
|
||||||
if len(args) < 2:
|
if len(args) < 2:
|
||||||
@@ -480,12 +482,15 @@ 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("%d/%m/%Y %H:%M")
|
timestamp = datetime.datetime.now().strftime("%A, %e de %B de %Y, %T").title()
|
||||||
|
|
||||||
entry_lines = [
|
entry_lines = [
|
||||||
f"## {name} ({email}) - {timestamp}",
|
f"## {timestamp}",
|
||||||
"",
|
"",
|
||||||
f"**{branch}**",
|
f"- Usuario: **{name}**",
|
||||||
|
f"- Email: **{email}**",
|
||||||
|
f"- Rama: **{branch}**",
|
||||||
|
""
|
||||||
]
|
]
|
||||||
|
|
||||||
commits = Git("log", target + "..", first_parent=True, format="%h", merges=False).lines()
|
commits = Git("log", target + "..", first_parent=True, format="%h", merges=False).lines()
|
||||||
|
|||||||
Reference in New Issue
Block a user