We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf377a4 commit 4e74c2eCopy full SHA for 4e74c2e
scripts/commit_release.sh
@@ -9,6 +9,15 @@ VERSION=$1
9
#NOTE: Ensure running in the repo root dir
10
pushd $(dirname ${BASH_SOURCE[0]})/../ >/dev/null
11
12
+ CHANGELOG_VER=$(head -n1 Changelog.md | grep -oE "[0-9.]*(-rc[0-9]*)?")
13
+ if [ "$CHANGELOG_VER" != "$VERSION" ] ; then
14
+ echo -e "ERROR:\tThe changelog version does not match the release version"
15
+ column -t -s ':' <<< "
16
+ Changelog version: ${CHANGELOG_VER}
17
+ Release version: ${VERSION}"
18
+ exit
19
+ fi
20
+
21
CHANGELOG_DIFF=$(git diff Changelog.md)
22
if [ "x$CHANGELOG_DIFF" == "x" ]; then
23
echo -e "ERROR:\tThe changelog does not contain the release changes"
0 commit comments