mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-24 03:21:40 +03:00
16 lines
452 B
Bash
Executable File
16 lines
452 B
Bash
Executable File
#!/bin/bash
|
|
set -Eeuo pipefail
|
|
# Check that issues in CHANGELOG are up-to-to-date
|
|
|
|
version=$(head -1 <CHANGELOG.md| cut -d" " -f1 | cut -d'[' -f2)
|
|
echo "version=$version"
|
|
changelog=$(bin/release/changelog_extract.py "$version" | grep '^\* ')
|
|
issues=$(bin/release/get_release_note.py "$version" | grep '^\* ')
|
|
|
|
if [ "$changelog" != "$issues" ]; then
|
|
echo "Diff in issues in CHANGELOG"
|
|
diff <(echo "$changelog") <(echo "$issues")
|
|
exit 1
|
|
fi
|
|
|