🔨 Añade soporte a changelog de pagetop-statics (#2)

Reviewed-on: #2
Co-authored-by: Manuel Cillero <manuel@cillero.es>
Co-committed-by: Manuel Cillero <manuel@cillero.es>
This commit is contained in:
Manuel Cillero 2025-08-09 10:17:14 +02:00 committed by Manuel Cillero
parent 47ea9d9f7d
commit c6075fd312
2 changed files with 8 additions and 3 deletions

View file

@ -21,9 +21,9 @@ body = """
{% else %} {% else %}
## Pendiente de publicación ## Pendiente de publicación
{% endif %}\ {% endif %}\
{% set base = "https://git.cillero.es/manuelcillero/pagetop" %}\
{% for group, commits in commits | group_by(attribute="group") %} {% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }} ### {{ group | upper_first }}
{% for commit in commits %} {% for commit in commits %}
{%- set msg = commit.message {%- set msg = commit.message
| split(pat="\n") | split(pat="\n")
@ -41,8 +41,8 @@ body = """
| replace(from="📝 ", to="") | replace(from="📝 ", to="")
| replace(from="💡 ", to="") | replace(from="💡 ", to="")
-%} -%}
{% set sha7 = commit.id | truncate(length=7, end="") %}
- {{ msg | trim }} ([{{ sha7 }}]({{ base }}/commit/{{ commit.id }}){% if commit.author.name != "Manuel Cillero" %} - {{ commit.author.name }}{% endif %}) - {{ msg | trim }} {% if commit.author.name != "Manuel Cillero" %} - {{ commit.author.name }}{% endif %}
{% endfor %}{% endfor %} {% endfor %}{% endfor %}
""" """

View file

@ -35,6 +35,10 @@ cd "$(dirname "$0")/.." || exit 1
# Determina ruta del archivo y ámbito de los archivos afectados para el crate # Determina ruta del archivo y ámbito de los archivos afectados para el crate
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
case "$CRATE" in case "$CRATE" in
pagetop-statics)
CHANGELOG_FILE="helpers/pagetop-statics/CHANGELOG.md"
PATH_FLAGS=(--include-path "helpers/pagetop-statics/**/*")
;;
pagetop-build) pagetop-build)
CHANGELOG_FILE="helpers/pagetop-build/CHANGELOG.md" CHANGELOG_FILE="helpers/pagetop-build/CHANGELOG.md"
PATH_FLAGS=(--include-path "helpers/pagetop-build/**/*") PATH_FLAGS=(--include-path "helpers/pagetop-build/**/*")
@ -46,6 +50,7 @@ case "$CRATE" in
pagetop) pagetop)
CHANGELOG_FILE="CHANGELOG.md" CHANGELOG_FILE="CHANGELOG.md"
PATH_FLAGS=( PATH_FLAGS=(
--exclude-path "helpers/pagetop-statics/**/*"
--exclude-path "helpers/pagetop-build/**/*" --exclude-path "helpers/pagetop-build/**/*"
--exclude-path "helpers/pagetop-macros/**/*" --exclude-path "helpers/pagetop-macros/**/*"
) )