ci(forgejo): check CHANGELOG channel suffix on the section title #26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/forgejo-release-changelog-title-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Le run Forgejo Actions du tag
1.0.6a échoué sur## [1.0.6] must declare suffix '- stable', alors que le CHANGELOG contient bien## [1.0.6] - stable.Cause : l'awk
/^## \[/ { ... in_section=1; next }saute la ligne du titre (next), donc$BODYne contient que les lignes après le titre. Le checkif [[ "$BODY" != *" - $CHANNEL"* ]]cherche- stabledans le body, mais le body ne contient que le contenu (subsection, bullets), pas le titre. → mismatch systématique.Fix : l'awk inclut maintenant la ligne du titre dans
$BODY, le check regarde la première ligne (le titre), puis strip le titre avant de passer le body à l'API release.