Check date in CHANGELOG

This commit is contained in:
Fabrice Reix 2024-08-30 11:49:25 +02:00
parent af36905521
commit 0aa544e59c
No known key found for this signature in database
GPG Key ID: BF5213154B2E7155
1 changed files with 7 additions and 0 deletions

View File

@ -9,7 +9,14 @@ if [[ -z "$version" ]]; then
exit 1
fi
date=$(echo "$first_line" | cut -d"(" -f2 | cut -d')' -f1)
if [[ ! "$date" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]]; then
echo "Date must set to format yyyy-mm-dd in the first line <$first_line> of the CHANGELOG"
exit 1
fi
echo "version=$version"
echo "date=$date"
changelog=$(bin/release/changelog_extract.py "$version" | grep '^\* ')
issues=$(bin/release/get_release_note.py "$version" | grep '^\* ')