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

Merged
manuelcillero merged 1 commit from release-of-statics into main 2025-08-09 10:17:15 +02:00
2 changed files with 8 additions and 3 deletions

View file

@ -21,9 +21,9 @@ body = """
{% else %}
## Pendiente de publicación
{% endif %}\
{% set base = "https://git.cillero.es/manuelcillero/pagetop" %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
{%- set msg = commit.message
| split(pat="\n")
@ -41,8 +41,8 @@ body = """
| 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 %}
"""

View file

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