ci(forgejo): check CHANGELOG channel suffix on the section title #26

Merged
notazof merged 1 commit from fix/forgejo-release-changelog-title-check into release/1.0.6 2026-08-17 01:50:18 +01:00
Owner

Le run Forgejo Actions du tag 1.0.6 a é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 $BODY ne contient que les lignes après le titre. Le check if [[ "$BODY" != *" - $CHANNEL"* ]] cherche - stable dans 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.

Le run Forgejo Actions du tag `1.0.6` a é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 `$BODY` ne contient que les lignes *après* le titre. Le check `if [[ "$BODY" != *" - $CHANNEL"* ]]` cherche `- stable` dans 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.
The previous awk extracted the section body but excluded the title
line (## [TAG] - channel), so the '* - $CHANNEL*' pattern never
matched. Fix: include the title line in the extracted body, verify
the channel suffix on the title, then strip the title before passing
the body to the release API.
notazof merged commit 69677727cb into release/1.0.6 2026-08-17 01:50:18 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
notazof/yavsc!26
No description provided.