2022-11-02 21:01:49 +03:00
|
|
|
#!/bin/bash
|
2022-12-14 11:28:25 +03:00
|
|
|
set -Eeuo pipefail
|
2022-11-02 21:01:49 +03:00
|
|
|
# Check that issues in CHANGELOG are up-to-to-date
|
|
|
|
|
2022-11-05 17:42:10 +03:00
|
|
|
version=$(head -1 <CHANGELOG.md| cut -d" " -f1 | cut -d'[' -f2)
|
2023-01-25 15:25:49 +03:00
|
|
|
echo "version=$version"
|
2022-12-07 11:10:05 +03:00
|
|
|
changelog=$(bin/release/changelog_extract.py "$version" | grep '^\* ')
|
2023-01-25 15:36:37 +03:00
|
|
|
issues=$(bin/release/get_release_note.py "$version" | grep '^\* ')
|
2022-11-05 17:42:10 +03:00
|
|
|
|
|
|
|
if [ "$changelog" != "$issues" ]; then
|
|
|
|
echo "Diff in issues in CHANGELOG"
|
|
|
|
diff <(echo "$changelog") <(echo "$issues")
|
|
|
|
exit 1
|
|
|
|
fi
|
2022-11-02 21:01:49 +03:00
|
|
|
|